summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2016-11-03 22:30:00 +0800
committerJacek Sieka <arnetheduck@gmail.com>2016-11-03 22:30:00 +0800
commitfa86571448ea89143ca78576c8248bc02ad056bd (patch)
treea2ffeed297b3c684d49c9eeda7b709266f155019 /lib
parentbe1e3c4e09e4c5592428e71d875ef6a623c82804 (diff)
downloadNim-fa86571448ea89143ca78576c8248bc02ad056bd.tar.gz
abi check: prefer nim constant to enable, document
Diffstat (limited to 'lib')
-rw-r--r--lib/nimbase.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index a75016ed7..818bff462 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -460,10 +460,6 @@ typedef int Nim_and_C_compiler_disagree_on_target_architecture[sizeof(NI) == siz
 #  include <sys/types.h>
 #endif
 
-/* Compile with -t:-DNIM_CHECK_ABI to enable */
-#ifdef NIM_CHECK_ABI
-#  define NIM_CHECK_SIZE(typ, sz) \
+/* Compile with -d:checkAbi and a sufficiently C11:ish compiler to enable */
+#define NIM_CHECK_SIZE(typ, sz) \
   _Static_assert(sizeof(typ) == sz, "Nim & C disagree on type size")
-#else
-#  define NIM_CHECK_SIZE(typ, sz)
-#endif