#include <conio.h>
#include <ctype.h>
#include <dbg.h>
+#include <cc65.h>
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
/* Wait for a key-press, so that some platforms can show the error
** message before they remove the current screen.
*/
- cgetc();
+ if (doesclrscrafterexit ()) {
+ cgetc ();
+ }
exit (EXIT_FAILURE);
}
}