Commit 5f6f47a6 authored by mux's avatar mux
Browse files

Make __assert_func weak

parent 00db5c81
......@@ -116,7 +116,8 @@ void nlr_jump_fail(void *val) {
}
#ifndef NDEBUG
void __assert_func(const char *file, int line, const char *func, const char *expr) {
void __attribute__((weak))
__assert_func(const char *file, int line, const char *func, const char *expr) {
(void)func;
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
__fatal_error("");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment