1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00
cc65/libsrc/common/_afailed.c

21 lines
319 B
C
Raw Normal View History

/*
** _afailed.c
**
** 1998-06-06, Ullrich von Bassewitz
** 2019-11-10, Greg King
*/
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
2022-08-28 18:08:13 +00:00
void __fastcall__ __afailed (char* file, unsigned line)
{
raise (SIGABRT);
2021-05-11 15:32:43 +00:00
fprintf (stderr, "ASSERTION FAILED IN %s:%u\n", file, line);
exit (EXIT_ASSERT);
}