diff options
author | ronny | 2000-10-05 10:27:32 +0000 |
---|---|---|
committer | ronny | 2000-10-05 10:27:32 +0000 |
commit | e28f3349df80fee434100099abc811769292623d (patch) | |
tree | 97fbcf3b3b1dadb3a6f4ade585657c59ea8f95ed | |
parent | sources in one folder, pruned frontend sources (diff) |
Added assertion alert box for Windows
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@252 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
-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 */ /* |