mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-13 07:57:23 +00:00
15 lines
303 B
C
Executable file
15 lines
303 B
C
Executable file
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
int _assert(char *e, char *file, int line) {
|
|
fprintf(stderr, "assertion failed:");
|
|
if (e)
|
|
fprintf(stderr, " %s", e);
|
|
if (file)
|
|
fprintf(stderr, " file %s", file);
|
|
fprintf(stderr, " line %d\n", line);
|
|
fflush(stderr);
|
|
abort();
|
|
return 0;
|
|
}
|