diff options
author | madmaxoft <github@xoft.cz> | 2014-05-30 11:01:13 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-05-30 11:01:13 +0200 |
commit | 730e36844e152794cf85c4d1e9b7a84fd8be86ee (patch) | |
tree | 3f774fff97e0bcd897ecec4b27e1c5a6e1f530d2 /src | |
parent | Test failures are reported verbosely and into the debug console on Win. (diff) | |
download | cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.tar cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.tar.gz cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.tar.bz2 cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.tar.lz cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.tar.xz cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.tar.zst cuberite-730e36844e152794cf85c4d1e9b7a84fd8be86ee.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Globals.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h index 7b7a34541..c5768facf 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -272,12 +272,18 @@ void inline LOGERROR(const char* a_Format, ...) }; #ifdef _WIN32 + #if (defined(_MSC_VER) && defined(_DEBUG)) + #define DBG_BREAK _CrtDbgBreak() + #else + #define DBG_BREAK + #endif #define REPORT_ERROR(FMT, ...) \ { \ AString msg = Printf(FMT, __VA_ARGS__); \ puts(msg.c_str()); \ fflush(stdout); \ OutputDebugStringA(msg.c_str()); \ + DBG_BREAK; \ } #else #define REPORT_ERROR(FMT, ...) \ |