mirror of
https://github.com/janet-lang/janet
synced 2025-01-11 16:10:27 +00:00
Abort on assert failure instead of exit
This commit is contained in:
parent
f6df8ff935
commit
431ecd3d1a
@ -49,11 +49,11 @@
|
|||||||
#ifndef JANET_EXIT
|
#ifndef JANET_EXIT
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define JANET_EXIT(m) do { \
|
#define JANET_EXIT(m) do { \
|
||||||
fprintf(stderr, "janet interpreter runtime error at line %d in file %s: %s\n",\
|
fprintf(stderr, "janet internal error at line %d in file %s: %s\n",\
|
||||||
__LINE__,\
|
__LINE__,\
|
||||||
__FILE__,\
|
__FILE__,\
|
||||||
(m));\
|
(m));\
|
||||||
exit(1);\
|
abort();\
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user