stddef: define nil to nullptr for C++

This commit is contained in:
anna 2021-07-15 22:51:24 +02:00
parent 49b44ad4bc
commit 2698409e4c
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -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)