Skip to content

Commit 68389c6

Browse files
committed
xrCore: fix wrong defines placement
1 parent 243b268 commit 68389c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/xrCore/xrDebug.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ void xrDebug::Fail(bool& ignoreAlways, const ErrorLocation& loc, const char* exp
389389
if (OnDialog)
390390
OnDialog(true);
391391
FlushLog();
392-
if (Core.PluginMode)
393392
#if defined(WINDOWS)
393+
if (Core.PluginMode)
394394
MessageBox(NULL, assertionInfo, "X-Ray error", MB_OK | MB_ICONERROR | MB_SYSTEMMODAL);
395395
else
396396
{
@@ -420,9 +420,10 @@ void xrDebug::Fail(bool& ignoreAlways, const ErrorLocation& loc, const char* exp
420420
DEBUG_BREAK;
421421
#endif
422422
}
423+
#endif
423424
if (OnDialog)
424425
OnDialog(false);
425-
#endif
426+
426427
lock.Leave();
427428
}
428429

0 commit comments

Comments
 (0)