Skip to content

Commit

Permalink
Use DEBUG_BREAK instead of DEBUG_INVOKE.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 17, 2016
1 parent a45c789 commit 952b9da
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/xrCore/xrDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ extern bool shared_str_initialized;
#include "d3dx9.h"
#include "D3DX_Wrapper.h"
#pragma comment(lib, "EToolsB.lib")
#define DEBUG_INVOKE DebugBreak()
# define USE_BUG_TRAP
#else
#define USE_BUG_TRAP
#define DEBUG_INVOKE __asm int 3
static BOOL bException = FALSE;
#endif

Expand Down Expand Up @@ -238,7 +236,7 @@ void xrDebug::Fail(bool &ignoreAlways, const ErrorLocation &loc, const char *exp
#ifdef USE_BUG_TRAP
BT_SetUserMessage(assertionInfo);
#endif
DEBUG_INVOKE;
DEBUG_BREAK;
break;
case IDTRYAGAIN:
ErrorAfterDialog = false;
Expand All @@ -248,13 +246,13 @@ void xrDebug::Fail(bool &ignoreAlways, const ErrorLocation &loc, const char *exp
ignoreAlways = true;
break;
default:
DEBUG_INVOKE;
DEBUG_BREAK;
}
#else // !USE_OWN_ERROR_MESSAGE_WINDOW
#ifdef USE_BUG_TRAP
BT_SetUserMessage(assertionInfo);
#endif
DEBUG_INVOKE;
DEBUG_BREAK;
#endif
}
if (OnDialog)
Expand Down

0 comments on commit 952b9da

Please sign in to comment.