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