mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
Make __assert_func weak
This commit is contained in:
@@ -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("");
|
||||
|
||||
Reference in New Issue
Block a user