mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-03 10:21:22 +00:00
* Moved lcc and q3asm into code/tools
This commit is contained in:
parent
b1cef6352e
commit
ad118b9baf
452 changed files with 0 additions and 0 deletions
15
code/tools/lcc/lib/assert.c
Normal file
15
code/tools/lcc/lib/assert.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue