From 431ecd3d1a4caabc66b62f63c2f83ece2f74e9f9 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Fri, 2 Feb 2024 08:40:12 -0600 Subject: [PATCH] Abort on assert failure instead of exit --- src/core/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/util.h b/src/core/util.h index ca5fde54..06cbb962 100644 --- a/src/core/util.h +++ b/src/core/util.h @@ -49,11 +49,11 @@ #ifndef JANET_EXIT #include #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