summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-30 11:01:13 +0200
committermadmaxoft <github@xoft.cz>2014-05-30 11:01:13 +0200
commit730e36844e152794cf85c4d1e9b7a84fd8be86ee (patch)
tree3f774fff97e0bcd897ecec4b27e1c5a6e1f530d2 /src/Globals.h
parentTest failures are reported verbosely and into the debug console on Win. (diff)
downloadcuberite-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.h6
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, ...) \