|
JubeatPlus 3.9.11
|
Fallback definition of nullptr for pre-C23 C compilers.
More...
Go to the source code of this file.
Macros | |
| #define | nullptr ((void *)0) |
| The C23 null pointer constant, for the pre-C23 C compilers that lack it. | |
Fallback definition of nullptr for pre-C23 C compilers.
The reconstructed sources use nullptr for every C and C++ null pointer. nullptr is a keyword in C++11 and later and in C23, so no definition is needed there. This header supplies a fallback only when the translation unit is compiled as C older than C23, where nullptr is not yet a keyword.
This is not reconstructed from the binary; it is a portability shim for this source tree. Wire it in by passing -include nullptr_compat.h to the compiler (from theos/Makefile and the CMake files) so it is prepended to every translation unit without a per-file import.