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:
hendricks266 2019-11-30 06:10:16 +00:00 committed by Christoph Oelckers
parent 8df8fc436a
commit 1cac2c76c6

View file

@ -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