Abort on assert failure instead of exit

This commit is contained in:
Calvin Rose 2024-02-02 08:40:12 -06:00
parent f6df8ff935
commit 431ecd3d1a
1 changed files with 2 additions and 2 deletions

View File

@ -49,11 +49,11 @@
#ifndef JANET_EXIT
#include <stdio.h>
#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__,\
__FILE__,\
(m));\
exit(1);\
abort();\
} while (0)
#endif