mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
SW: Add debug_break() to _Assert()
git-svn-id: https://svn.eduke32.com/eduke32@8335 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8df8fc436a
commit
1cac2c76c6
1 changed files with 4 additions and 2 deletions
|
@ -2657,9 +2657,11 @@ void Control()
|
||||||
|
|
||||||
void _Assert(const char *expr, const char *strFile, unsigned uLine)
|
void _Assert(const char *expr, const char *strFile, unsigned uLine)
|
||||||
{
|
{
|
||||||
sprintf(ds, "Assertion failed: %s %s, line %u", expr, strFile, uLine);
|
buildprintf(ds, "Assertion failed: %s %s, line %u", expr, strFile, uLine);
|
||||||
MONO_PRINT(ds);
|
debug_break();
|
||||||
|
|
||||||
TerminateGame();
|
TerminateGame();
|
||||||
|
|
||||||
#if 1 //def RENDERTYPEWIN
|
#if 1 //def RENDERTYPEWIN
|
||||||
wm_msgbox(apptitle, "%s", ds);
|
wm_msgbox(apptitle, "%s", ds);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue