Replace exit to abort in libdivide

This commit is contained in:
Alexey Milovidov 2020-07-05 03:02:50 +03:00
parent c5cf7199d8
commit 351eda5d8a

View File

@ -76,7 +76,7 @@
do { \
fprintf(stderr, "libdivide.h:%d: %s(): Error: %s\n", \
__LINE__, LIBDIVIDE_FUNCTION, msg); \
exit(-1); \
abort(); \
} while (0)
#if defined(LIBDIVIDE_ASSERTIONS_ON)
@ -85,7 +85,7 @@
if (!(x)) { \
fprintf(stderr, "libdivide.h:%d: %s(): Assertion failed: %s\n", \
__LINE__, LIBDIVIDE_FUNCTION, #x); \
exit(-1); \
abort(); \
} \
} while (0)
#else