summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-15 14:53:07 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-15 14:53:07 +0100
commit683e2f48405a2bcbf0b839db51379946e096b212 (patch)
tree43f1df6cdfab7c6c440554438cd087fc3c19096e /src/Globals.h
parentMerge branch 'master' into globals (diff)
parentDebuggers: Added a test for WE selection API. (diff)
downloadcuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar
cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.gz
cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.bz2
cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.lz
cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.xz
cuberite-683e2f48405a2bcbf0b839db51379946e096b212.tar.zst
cuberite-683e2f48405a2bcbf0b839db51379946e096b212.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h11
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>