bugfix: wrong assertions for C++ code generation; some solaris support; first steps to an effect system

This commit is contained in:
Araq
2012-10-30 22:29:03 +01:00
parent 86ed918157
commit 2133fbfcce
11 changed files with 193 additions and 22 deletions

View File

@@ -470,4 +470,6 @@ static inline void GCGuard (void *ptr) { asm volatile ("" :: "X" (ptr)); }
# define GC_GUARD
#endif
typedef int assert_numbits[sizeof(NI) == sizeof(void*) &&
NIM_INTBITS == sizeof(NI)*8 ? 1 : -1];
#endif

View File

@@ -24,6 +24,9 @@ when defined(Windows):
import winlean
else:
import posix
when defined(solaris):
{.passl: "-lsocket -lnsl".}
# Note: The enumerations are mapped to Window's constants.