mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 00:07:21 +00:00
21 lines
319 B
C
21 lines
319 B
C
/*
|
|
** _afailed.c
|
|
**
|
|
** 1998-06-06, Ullrich von Bassewitz
|
|
** 2019-11-10, Greg King
|
|
*/
|
|
|
|
|
|
|
|
#include <signal.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
void __fastcall__ __afailed (char* file, unsigned line)
|
|
{
|
|
raise (SIGABRT);
|
|
fprintf (stderr, "ASSERTION FAILED IN %s:%u\n", file, line);
|
|
exit (EXIT_ASSERT);
|
|
}
|