summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-07-10 05:45:15 +0200
committerMitya Selivanov <automainint@guattari.tech>2024-07-10 05:45:15 +0200
commit2d11cfdfcfc9c80de467200df517a706490cfd80 (patch)
treeea23169b0cf9f53101b37b379a1bcada482bd87d
parent342e1ae4cc7ca25c269f59ef4d2591d1b89862da (diff)
downloadbxgen-2d11cfdfcfc9c80de467200df517a706490cfd80.zip
Use abort in bx_assert
-rwxr-xr-xbxgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bxgen.c b/bxgen.c
index efb38d4..4a1ba2c 100755
--- a/bxgen.c
+++ b/bxgen.c
@@ -1474,7 +1474,7 @@ void bx_assert(b8 condition, c8 const *message, u32 line, c8 const *file) {
fflush(stdout);
fprintf(stderr, "\r\x1b[31mASSERTION:\x1b[37m `\x1b[33m%s\x1b[37m` is false in \x1b[36m%s:%d\x1b[37m\n", message, file, line);
- exit(-1);
+ abort();
}
// IO dispatch procedure