Add __assert_func only if DEBUG=1
This commit is contained in:
parent
34e7b67d3c
commit
00db5c81e1
@ -115,11 +115,13 @@ void nlr_jump_fail(void *val) {
|
||||
__fatal_error("");
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void __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("");
|
||||
}
|
||||
#endif
|
||||
|
||||
STATIC mp_obj_t pyb_config_source_dir = MP_OBJ_NULL;
|
||||
STATIC mp_obj_t pyb_config_main = MP_OBJ_NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user