mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Replace exit to abort in libdivide
This commit is contained in:
parent
c5cf7199d8
commit
351eda5d8a
@ -76,7 +76,7 @@
|
|||||||
do { \
|
do { \
|
||||||
fprintf(stderr, "libdivide.h:%d: %s(): Error: %s\n", \
|
fprintf(stderr, "libdivide.h:%d: %s(): Error: %s\n", \
|
||||||
__LINE__, LIBDIVIDE_FUNCTION, msg); \
|
__LINE__, LIBDIVIDE_FUNCTION, msg); \
|
||||||
exit(-1); \
|
abort(); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#if defined(LIBDIVIDE_ASSERTIONS_ON)
|
#if defined(LIBDIVIDE_ASSERTIONS_ON)
|
||||||
@ -85,7 +85,7 @@
|
|||||||
if (!(x)) { \
|
if (!(x)) { \
|
||||||
fprintf(stderr, "libdivide.h:%d: %s(): Assertion failed: %s\n", \
|
fprintf(stderr, "libdivide.h:%d: %s(): Assertion failed: %s\n", \
|
||||||
__LINE__, LIBDIVIDE_FUNCTION, #x); \
|
__LINE__, LIBDIVIDE_FUNCTION, #x); \
|
||||||
exit(-1); \
|
abort(); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user