mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
Removed CC65_ prefixes from exit statements in abort and assert code as well from definition
This commit is contained in:
parent
16a66f19e1
commit
a139c4057c
@ -41,8 +41,8 @@
|
||||
constants defined in stdlib.h. The values 0 and 1 are still
|
||||
reserved for EXIT_SUCCESS and EXIT_FAILURE and should not be
|
||||
redefined */
|
||||
#define CC65_EXIT_AFAILED 2
|
||||
#define CC65_EXIT_ABORT 3
|
||||
#define EXIT_ASSERT 2
|
||||
#define EXIT_ABORT 3
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -17,5 +17,5 @@ void __fastcall__ _afailed (char* file, unsigned line)
|
||||
{
|
||||
raise (SIGABRT);
|
||||
fprintf (stderr, "ASSERTION FAILED IN %s(%u)\n", file, line);
|
||||
exit (CC65_EXIT_AFAILED);
|
||||
exit (EXIT_ASSERT);
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ void abort (void)
|
||||
{
|
||||
raise (SIGABRT);
|
||||
fputs ("ABNORMAL PROGRAM TERMINATION\n", stderr);
|
||||
exit (CC65_EXIT_ABORT);
|
||||
exit (EXIT_ABORT);
|
||||
}
|
||||
|
||||
|
||||
|
@ -29,5 +29,5 @@ void _afailed (char* file, unsigned line)
|
||||
|
||||
DlgBoxOk(CBOLDON "ASSERTION FAILED", "PROGRAM TERMINATED" CPLAINTEXT);
|
||||
|
||||
exit (CC65_EXIT_AFAILED);
|
||||
exit (EXIT_ASSERT);
|
||||
}
|
||||
|
@ -12,5 +12,5 @@ void abort (void)
|
||||
{
|
||||
ExitTurbo();
|
||||
DlgBoxOk(CBOLDON "ABNORMAL PROGRAM", "TERMINATION." CPLAINTEXT);
|
||||
exit(CC65_EXIT_ABORT);
|
||||
exit(EXIT_ABORT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user