diff options
author | Mattes D <github@xoft.cz> | 2014-11-30 11:10:28 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-11-30 11:10:28 +0100 |
commit | d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77 (patch) | |
tree | 62f795395e2b5fa42922b784e7da85b6de122eb5 /src/Globals.h | |
parent | Merge pull request #1622 from M10360/master (diff) | |
parent | Fixed MCADefrag compilation. (diff) | |
download | cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.tar cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.tar.gz cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.tar.bz2 cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.tar.lz cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.tar.xz cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.tar.zst cuberite-d8e6931fe69a337d35fd7ee6cd9febe6d6d73d77.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 |