Make __assert_func weak
This commit is contained in:
parent
00db5c81e1
commit
5f6f47a688
@ -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("");
|
||||||
|
Loading…
Reference in New Issue
Block a user