summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-02 16:16:36 +0200
committerAraq <rumpf_a@web.de>2018-10-02 16:18:16 +0200
commitc2de135905bce2cf040cd8d4e9adc9d844de555a (patch)
tree013582efee652a182f4cf6840710dbdcf6ba9066 /lib
parent6f23b05c09bd837b80dbe8b6debefb4bd69fb1ae (diff)
downloadNim-c2de135905bce2cf040cd8d4e9adc9d844de555a.tar.gz
C++ codegen: map nil to nullptr
Diffstat (limited to 'lib')
-rw-r--r--lib/nimbase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index c04d378c5..017f0d5f6 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -280,7 +280,7 @@ namespace USE_NIM_NAMESPACE {
 #    define NIM_FALSE false
 #  endif
 #  define NIM_BOOL bool
-#  define NIM_NIL 0
+#  define NIM_NIL nullptr
 #else
 #  ifdef bool
 #    define NIM_BOOL bool