Update tl-parser in release builds
- Changed assertions to abort to allow the build to fail on release targets - Fixed some wrong assertion - Changed all stderr print to the respective macro
This commit is contained in:
parent
98b469c21d
commit
d137b75516
610
tl-parser.c
610
tl-parser.c
File diff suppressed because it is too large
Load Diff
7
tlc.c
7
tlc.c
@ -24,7 +24,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <io.h>
|
||||
@ -65,19 +64,17 @@ int vkext_write (const char *filename) {
|
||||
if (r != 0)
|
||||
{
|
||||
fprintf(stderr, "Cannot write file %s\n", filename);
|
||||
return -1;
|
||||
abort();
|
||||
}
|
||||
#elif defined(WIN32) || defined(_WIN32)
|
||||
int f = open(filename, O_CREAT | O_WRONLY | O_TRUNC | O_BINARY, 0640);
|
||||
assert(f >= 0);
|
||||
#else
|
||||
int f = open (filename, O_CREAT | O_WRONLY | O_TRUNC, 0640);
|
||||
assert (f >= 0);
|
||||
#endif
|
||||
if (!f)
|
||||
{
|
||||
fprintf(stderr, "Cannot write file %s\n", filename);
|
||||
return -1;
|
||||
abort();
|
||||
}
|
||||
write_types (f);
|
||||
close (f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user