use __afailed instead of _afailed

This commit is contained in:
mrdudz 2022-08-28 20:08:13 +02:00
parent 8e5f6b822d
commit 9246775ebe
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -8,7 +8,7 @@
#include <stdlib.h>
#include <geos.h>
void _afailed (char* file, unsigned line)
void __afailed (char* file, unsigned line)
{
ExitTurbo();