diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-11-30 19:38:52 +0100 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-11-30 19:38:52 +0100 |
commit | 6adf749164d7bc98bf34173b1f9d64804913d734 (patch) | |
tree | e15bd9dd8512fdbb61736db4d2d0b1f218bb81f0 /src/Globals.h | |
parent | Removed old MobType category. (diff) | |
parent | Hopefully fixed random build fails (diff) | |
download | cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.gz cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.bz2 cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.lz cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.xz cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.tar.zst cuberite-6adf749164d7bc98bf34173b1f9d64804913d734.zip |
Diffstat (limited to 'src/Globals.h')
-rw-r--r-- | src/Globals.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Globals.h b/src/Globals.h index 582f5fdaa..d75ae0093 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -264,6 +264,7 @@ template class SizeChecker<UInt16, 2>; #include "OSSupport/Thread.h" #include "OSSupport/File.h" #include "Logger.h" + #include "OSSupport/StackTrace.h" #else // Logging functions void inline LOGERROR(const char* a_Format, ...) FORMATSTRING(1, 2); @@ -349,14 +350,14 @@ void inline LOGD(const char* a_Format, ...) #else #ifdef _DEBUG - #define ASSERT( x) ( !!(x) || ( LOGERROR("Assertion failed: %s, file %s, line %i", #x, __FILE__, __LINE__), assert(0), 0)) + #define ASSERT( x) ( !!(x) || ( LOGERROR("Assertion failed: %s, file %s, line %i", #x, __FILE__, __LINE__), PrintStackTrace(), assert(0), 0)) #else #define ASSERT(x) ((void)(x)) #endif #endif // Pretty much the same as ASSERT() but stays in Release builds -#define VERIFY( x) ( !!(x) || ( LOGERROR("Verification failed: %s, file %s, line %i", #x, __FILE__, __LINE__), exit(1), 0)) +#define VERIFY( x) ( !!(x) || ( LOGERROR("Verification failed: %s, file %s, line %i", #x, __FILE__, __LINE__), PrintStackTrace(), exit(1), 0)) // Same as assert but in all Self test builds #ifdef SELF_TEST |