1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-14 14:26:27 +00:00

Removed CC65_ prefixes from exit statements in abort and assert code as well from definition

This commit is contained in:
mc78
2019-11-17 13:13:43 +01:00
committed by Oliver Schmidt
parent 16a66f19e1
commit a139c4057c
5 changed files with 6 additions and 6 deletions

View File

@@ -41,8 +41,8 @@
constants defined in stdlib.h. The values 0 and 1 are still constants defined in stdlib.h. The values 0 and 1 are still
reserved for EXIT_SUCCESS and EXIT_FAILURE and should not be reserved for EXIT_SUCCESS and EXIT_FAILURE and should not be
redefined */ redefined */
#define CC65_EXIT_AFAILED 2 #define EXIT_ASSERT 2
#define CC65_EXIT_ABORT 3 #define EXIT_ABORT 3
/*****************************************************************************/ /*****************************************************************************/

View File

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

View File

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

View File

@@ -29,5 +29,5 @@ void _afailed (char* file, unsigned line)
DlgBoxOk(CBOLDON "ASSERTION FAILED", "PROGRAM TERMINATED" CPLAINTEXT); DlgBoxOk(CBOLDON "ASSERTION FAILED", "PROGRAM TERMINATED" CPLAINTEXT);
exit (CC65_EXIT_AFAILED); exit (EXIT_ASSERT);
} }

View File

@@ -12,5 +12,5 @@ void abort (void)
{ {
ExitTurbo(); ExitTurbo();
DlgBoxOk(CBOLDON "ABNORMAL PROGRAM", "TERMINATION." CPLAINTEXT); DlgBoxOk(CBOLDON "ABNORMAL PROGRAM", "TERMINATION." CPLAINTEXT);
exit(CC65_EXIT_ABORT); exit(EXIT_ABORT);
} }