mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-01 17:41:17 +00:00
bugfix: wrong assertions for C++ code generation; some solaris support; first steps to an effect system
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user