Skip to content

Commit 5f6f47a

Browse files
committed
Make __assert_func weak
1 parent 00db5c8 commit 5f6f47a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

stmhal/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ void nlr_jump_fail(void *val) {
116116
}
117117

118118
#ifndef NDEBUG
119-
void __assert_func(const char *file, int line, const char *func, const char *expr) {
119+
void __attribute__((weak))
120+
__assert_func(const char *file, int line, const char *func, const char *expr) {
120121
(void)func;
121122
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
122123
__fatal_error("");

0 commit comments

Comments
 (0)