aboutsummaryrefslogtreecommitdiff
path: root/backendC
diff options
context:
space:
mode:
Diffstat (limited to 'backendC')
-rw-r--r--backendC/CleanCompilerSources/backendsupport.c13
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 */
/*