Make __assert_func weak

This commit is contained in:
mux 2014-06-14 17:02:50 +02:00
parent 00db5c81e1
commit 5f6f47a688

View File

@ -116,7 +116,8 @@ void nlr_jump_fail(void *val) {
} }
#ifndef NDEBUG #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; (void)func;
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line); printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
__fatal_error(""); __fatal_error("");