mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 19:55:09 +00:00
use __afailed instead of _afailed
This commit is contained in:
parent
8e5f6b822d
commit
9246775ebe
@ -42,8 +42,8 @@
|
|||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
# define assert(expr)
|
# define assert(expr)
|
||||||
#else
|
#else
|
||||||
extern void __fastcall__ _afailed (const char*, unsigned);
|
extern void __fastcall__ __afailed (const char*, unsigned);
|
||||||
# define assert(expr) ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
|
# define assert(expr) ((expr)? (void)0 : __afailed(__FILE__, __LINE__))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* TODO: Guard with #if __CC65_STD__ >= __CC65_STD_C11__ if there
|
/* TODO: Guard with #if __CC65_STD__ >= __CC65_STD_C11__ if there
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
void __fastcall__ _afailed (char* file, unsigned line)
|
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);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <geos.h>
|
#include <geos.h>
|
||||||
|
|
||||||
void _afailed (char* file, unsigned line)
|
void __afailed (char* file, unsigned line)
|
||||||
{
|
{
|
||||||
ExitTurbo();
|
ExitTurbo();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user