Itsa me, quake3io!
This commit is contained in:
parent
dbe4ddb103
commit
5b755058f5
1409 changed files with 798983 additions and 798983 deletions
30
lcc/lib/assert.c
Normal file → Executable file
30
lcc/lib/assert.c
Normal file → Executable file
|
@ -1,15 +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;
|
||||
}
|
||||
#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