Add __assert_func

* issue #692
This commit is contained in:
mux 2014-06-14 14:41:11 +02:00
parent 8340c48389
commit 34e7b67d3c

View File

@ -115,6 +115,12 @@ void nlr_jump_fail(void *val) {
__fatal_error("");
}
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("");
}
STATIC mp_obj_t pyb_config_source_dir = MP_OBJ_NULL;
STATIC mp_obj_t pyb_config_main = MP_OBJ_NULL;
STATIC mp_obj_t pyb_config_usb_mode = MP_OBJ_NULL;