mirror of
https://github.com/cc65/cc65.git
synced 2024-12-10 20:52:21 +00:00
use __afailed instead of _afailed
This commit is contained in:
parent
8e5f6b822d
commit
9246775ebe
@ -42,8 +42,8 @@
|
||||
#ifdef NDEBUG
|
||||
# define assert(expr)
|
||||
#else
|
||||
extern void __fastcall__ _afailed (const char*, unsigned);
|
||||
# define assert(expr) ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
|
||||
extern void __fastcall__ __afailed (const char*, unsigned);
|
||||
# define assert(expr) ((expr)? (void)0 : __afailed(__FILE__, __LINE__))
|
||||
#endif
|
||||
|
||||
/* TODO: Guard with #if __CC65_STD__ >= __CC65_STD_C11__ if there
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
void __fastcall__ _afailed (char* file, unsigned line)
|
||||
void __fastcall__ __afailed (char* file, unsigned line)
|
||||
{
|
||||
raise (SIGABRT);
|
||||
fprintf (stderr, "ASSERTION FAILED IN %s:%u\n", file, line);
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <geos.h>
|
||||
|
||||
void _afailed (char* file, unsigned line)
|
||||
void __afailed (char* file, unsigned line)
|
||||
{
|
||||
ExitTurbo();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user