Skip to content

Commit 952b9da

Browse files
author
nitrocaster
committed
Use DEBUG_BREAK instead of DEBUG_INVOKE.
1 parent a45c789 commit 952b9da

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/xrCore/xrDebug.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ extern bool shared_str_initialized;
1919
#include "d3dx9.h"
2020
#include "D3DX_Wrapper.h"
2121
#pragma comment(lib, "EToolsB.lib")
22-
#define DEBUG_INVOKE DebugBreak()
2322
# define USE_BUG_TRAP
2423
#else
2524
#define USE_BUG_TRAP
26-
#define DEBUG_INVOKE __asm int 3
2725
static BOOL bException = FALSE;
2826
#endif
2927

@@ -238,7 +236,7 @@ void xrDebug::Fail(bool &ignoreAlways, const ErrorLocation &loc, const char *exp
238236
#ifdef USE_BUG_TRAP
239237
BT_SetUserMessage(assertionInfo);
240238
#endif
241-
DEBUG_INVOKE;
239+
DEBUG_BREAK;
242240
break;
243241
case IDTRYAGAIN:
244242
ErrorAfterDialog = false;
@@ -248,13 +246,13 @@ void xrDebug::Fail(bool &ignoreAlways, const ErrorLocation &loc, const char *exp
248246
ignoreAlways = true;
249247
break;
250248
default:
251-
DEBUG_INVOKE;
249+
DEBUG_BREAK;
252250
}
253251
#else // !USE_OWN_ERROR_MESSAGE_WINDOW
254252
#ifdef USE_BUG_TRAP
255253
BT_SetUserMessage(assertionInfo);
256254
#endif
257-
DEBUG_INVOKE;
255+
DEBUG_BREAK;
258256
#endif
259257
}
260258
if (OnDialog)

0 commit comments

Comments
 (0)