diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-14 15:59:25 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-14 15:59:25 +0100 |
commit | 8e11c270fc786a8b8b72aed71cf8feee659c4876 (patch) | |
tree | ea4d5b6b2b2477cf18b538203f90e938c70d0a7e /src/Globals.h | |
parent | Added NORETURN macro (diff) | |
download | cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.tar cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.tar.gz cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.tar.bz2 cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.tar.lz cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.tar.xz cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.tar.zst cuberite-8e11c270fc786a8b8b72aed71cf8feee659c4876.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Globals.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Globals.h b/src/Globals.h index a5b9d391a..3e62832b7 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -46,7 +46,7 @@ #define SIZE_T_FMT_PRECISION(x) "%" #x "Iu" #define SIZE_T_FMT_HEX "%Ix" - #define NORETURN __declspec(noreturn) + #define NORETURN __declspec(noreturn) #elif defined(__GNUC__) @@ -72,7 +72,7 @@ #define SIZE_T_FMT_PRECISION(x) "%" #x "zu" #define SIZE_T_FMT_HEX "%zx" - #define NORETURN __attribute((__noreturn__)) + #define NORETURN __attribute((__noreturn__)) #else @@ -98,6 +98,13 @@ #endif +#ifdef _DEBUG + #define NORETURNDEBUG NORETURN +#else + #define NORETURNDEBUG +#endif + + #include <stddef.h> |