diff options
author | Araq <rumpf_a@web.de> | 2012-10-30 22:29:03 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-10-30 22:29:03 +0100 |
commit | 2133fbfccef934ae0f8ffafe0ecf4ef378e4cacf (patch) | |
tree | f134579954e688260d9417e86e48427129430181 /lib/nimbase.h | |
parent | 86ed9181570d16406e63754bd409c2b33c73b4a5 (diff) | |
download | Nim-2133fbfccef934ae0f8ffafe0ecf4ef378e4cacf.tar.gz |
bugfix: wrong assertions for C++ code generation; some solaris support; first steps to an effect system
Diffstat (limited to 'lib/nimbase.h')
-rwxr-xr-x | lib/nimbase.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index 69aa904db..74dd931e6 100755 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -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 |