stddef: define nil to nullptr for C++
This commit is contained in:
parent
49b44ad4bc
commit
2698409e4c
1 changed files with 5 additions and 1 deletions
|
@ -8,7 +8,11 @@ extern "C" {
|
|||
|
||||
#include "neo/_types.h"
|
||||
|
||||
#define nil ((void *)0)
|
||||
#ifdef __cplusplus
|
||||
# define nil nullptr
|
||||
#else
|
||||
# define nil ((void *)0)
|
||||
#endif
|
||||
|
||||
#if !defined(__cplusplus) && !defined(true)
|
||||
# define true ((bool)1)
|
||||
|
|
Loading…
Reference in a new issue