2000-05-28 13:40:48 +00:00
|
|
|
/*
|
2014-06-30 05:10:35 -04:00
|
|
|
** _afailed.c
|
|
|
|
**
|
2015-03-13 07:35:47 -04:00
|
|
|
** 1998-06-06, Ullrich von Bassewitz
|
2019-11-10 12:46:01 -05:00
|
|
|
** 2019-11-10, Greg King
|
2014-06-30 05:10:35 -04:00
|
|
|
*/
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-11-10 12:46:01 -05:00
|
|
|
#include <signal.h>
|
2000-05-28 13:40:48 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
2022-08-28 20:08:13 +02:00
|
|
|
void __fastcall__ __afailed (char* file, unsigned line)
|
2000-05-28 13:40:48 +00:00
|
|
|
{
|
2019-11-10 12:46:01 -05:00
|
|
|
raise (SIGABRT);
|
2021-05-11 16:32:43 +01:00
|
|
|
fprintf (stderr, "ASSERTION FAILED IN %s:%u\n", file, line);
|
2019-11-17 13:13:43 +01:00
|
|
|
exit (EXIT_ASSERT);
|
2000-05-28 13:40:48 +00:00
|
|
|
}
|