mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
21 lines
318 B
C
21 lines
318 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);
|
|
}
|