Added enum for cc65 exit codes. replaced stdlib exit code names constants in libsrc with cc65 exit code named constants

This commit is contained in:
mc78
2019-11-12 13:08:33 +01:00
committed by Oliver Schmidt
parent 7bae9038cf
commit 3daecfb3dd
7 changed files with 15 additions and 7 deletions

View File

@@ -17,5 +17,5 @@ void __fastcall__ _afailed (char* file, unsigned line)
{
raise (SIGABRT);
fprintf (stderr, "ASSERTION FAILED IN %s(%u)\n", file, line);
exit (2);
exit (CC65_EXIT_AFAILED);
}

View File

@@ -16,7 +16,7 @@ void abort (void)
{
raise (SIGABRT);
fputs ("ABNORMAL PROGRAM TERMINATION\n", stderr);
exit (3);
exit (CC65_EXIT_ABORT);
}