diff options
Diffstat (limited to 'backendC/CleanCompilerSources')
-rw-r--r-- | backendC/CleanCompilerSources/backendsupport.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/backendC/CleanCompilerSources/backendsupport.c b/backendC/CleanCompilerSources/backendsupport.c index 55975b4..fe2f3d7 100644 --- a/backendC/CleanCompilerSources/backendsupport.c +++ b/backendC/CleanCompilerSources/backendsupport.c @@ -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 */ /* |