mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
C++ codegen: map nil to nullptr
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user