1
0

Test failures break into MSVC debugger.

This commit is contained in:
madmaxoft 2014-05-30 11:01:13 +02:00
parent 0b60caac4a
commit 730e36844e

View File

@ -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, ...) \