diff options
author | Mattes D <github@xoft.cz> | 2014-03-14 16:16:33 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-14 16:16:33 +0100 |
commit | 763ea2840b9403b2c515b026189eaaab560048b5 (patch) | |
tree | 91a1ab3710a58e8996345f0de21ccb9ee9cbaa63 /src/Globals.h | |
parent | Merge pull request #805 from worktycho/undef (diff) | |
parent | Merge branch 'master' into noreturn (diff) | |
download | cuberite-763ea2840b9403b2c515b026189eaaab560048b5.tar cuberite-763ea2840b9403b2c515b026189eaaab560048b5.tar.gz cuberite-763ea2840b9403b2c515b026189eaaab560048b5.tar.bz2 cuberite-763ea2840b9403b2c515b026189eaaab560048b5.tar.lz cuberite-763ea2840b9403b2c515b026189eaaab560048b5.tar.xz cuberite-763ea2840b9403b2c515b026189eaaab560048b5.tar.zst cuberite-763ea2840b9403b2c515b026189eaaab560048b5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Globals.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h index c2542f0d8..3e62832b7 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -45,6 +45,8 @@ #define SIZE_T_FMT "%Iu" #define SIZE_T_FMT_PRECISION(x) "%" #x "Iu" #define SIZE_T_FMT_HEX "%Ix" + + #define NORETURN __declspec(noreturn) #elif defined(__GNUC__) @@ -69,6 +71,8 @@ #define SIZE_T_FMT "%zu" #define SIZE_T_FMT_PRECISION(x) "%" #x "zu" #define SIZE_T_FMT_HEX "%zx" + + #define NORETURN __attribute((__noreturn__)) #else @@ -94,6 +98,13 @@ #endif +#ifdef _DEBUG + #define NORETURNDEBUG NORETURN +#else + #define NORETURNDEBUG +#endif + + #include <stddef.h> |