mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x).
This helper function was added a while ago and these are the remaining cases to convert, to save a bit of code size.
This commit is contained in:
@@ -149,8 +149,7 @@ void ets_event_poll(void) {
|
||||
|
||||
void __assert_func(const char *file, int line, const char *func, const char *expr) {
|
||||
printf("assert:%s:%d:%s: %s\n", file, line, func, expr);
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_AssertionError,
|
||||
"C-level assert"));
|
||||
mp_raise_msg(&mp_type_AssertionError, "C-level assert");
|
||||
}
|
||||
|
||||
void mp_hal_signal_input(void) {
|
||||
|
||||
Reference in New Issue
Block a user