Make use of doesclrscrafterexit().

This commit is contained in:
Oliver Schmidt
2016-06-18 23:35:57 +02:00
parent 520641890d
commit 9bc096d9b0
8 changed files with 57 additions and 20 deletions

View File

@@ -17,6 +17,7 @@
#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))
@@ -57,7 +58,9 @@ static void __fastcall__ CheckError (const char* S, unsigned char Error)
/* 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);
}
}