1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
cc65/libsrc/common/_afailed.c
2022-08-28 20:08:13 +02:00

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