summary refs log tree commit diff stats
path: root/lib/nimbase.h
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-30 22:29:03 +0100
committerAraq <rumpf_a@web.de>2012-10-30 22:29:03 +0100
commit2133fbfccef934ae0f8ffafe0ecf4ef378e4cacf (patch)
treef134579954e688260d9417e86e48427129430181 /lib/nimbase.h
parent86ed9181570d16406e63754bd409c2b33c73b4a5 (diff)
downloadNim-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-xlib/nimbase.h2
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