summaryrefslogtreecommitdiff
path: root/libmisc/assert.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-17 19:18:21 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-12-26 18:28:34 -0700
commit79284b25994d90149f4a9a5286ec739770db94ea (patch)
tree1e6918d094ac7bf2df1041cdc901bb4fe62391e3 /libmisc/assert.c
parent3756c77e536a293fc735726eac0e5f0c3a8b89da (diff)
libmisc: Rework how test-intercepts work
Diffstat (limited to 'libmisc/assert.c')
-rw-r--r--libmisc/assert.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmisc/assert.c b/libmisc/assert.c
index 8231c85..69c0530 100644
--- a/libmisc/assert.c
+++ b/libmisc/assert.c
@@ -5,7 +5,6 @@
*/
#include <stdbool.h> /* for bool, true, false */
-#include <stdlib.h> /* for abort() */
#define LOG_NAME ASSERT
#include <libmisc/log.h> /* for errorf() */
@@ -13,7 +12,6 @@
#include <libmisc/assert.h>
#ifndef NDEBUG
-[[noreturn, gnu::weak]]
void __assert_msg_fail(const char *expr,
const char *file, unsigned int line, const char *func,
const char *msg) {
@@ -26,6 +24,6 @@ void __assert_msg_fail(const char *expr,
msg ? ": " : "", msg ?: "");
in_fail = false;
}
- abort();
+ __lm_abort();
}
#endif