Skip to content

Commit 64e64aa

Browse files
authored
ggml : restore abort() in GGML_ASSERT (#4242)
1 parent 8406b09 commit 64e64aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ggml.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,10 @@
244244
#define GGML_ASSERT(x) \
245245
do { \
246246
if (!(x)) { \
247-
fprintf(stderr, "GGML_ASSERT: %s:%d: %s\n", __FILE__, __LINE__, #x); \
248-
fflush(stderr); \
249247
fflush(stdout); \
248+
fprintf(stderr, "GGML_ASSERT: %s:%d: %s\n", __FILE__, __LINE__, #x); \
250249
ggml_print_backtrace(); \
251-
exit(1); \
250+
abort(); \
252251
} \
253252
} while (0)
254253

0 commit comments

Comments
 (0)