Commit a75d37b1 authored by Ronny Wichers Schreur's avatar Ronny Wichers Schreur 🏘
Browse files

Added assertion alert box for Windows

parent 11e1c660
......@@ -17,10 +17,21 @@
void
AssertionFailed (char *conditionString, char *file, int line)
{
{
FPrintF (StdError, "Error in backend: File %s, Line %d (%s)\n", file, line, conditionString);
# ifdef _WINDOWS_
{
static char error[200];
sprintf (error, "Error in backend: File %s, Line %d (%s)\nDebug ?", file, line, conditionString);
if (MessageBox (NULL,error,"AssertionFailed",MB_YESNO)==IDYES)
Debugger ();
}
#else
Debugger ();
#endif
} /* AssertionFailed */
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment