summaryrefslogtreecommitdiffstatshomepage
path: root/py/nativeglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/nativeglue.c')
-rw-r--r--py/nativeglue.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/nativeglue.c b/py/nativeglue.c
index 62b76eb6b1..4405b2d116 100644
--- a/py/nativeglue.c
+++ b/py/nativeglue.c
@@ -244,7 +244,11 @@ const void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_call_method_n_kw_var,
mp_native_getiter,
mp_native_iternext,
+ #if MICROPY_NLR_SETJMP
+ nlr_push_tail,
+ #else
nlr_push,
+ #endif
nlr_pop,
mp_native_raise,
mp_import_name,
@@ -262,6 +266,11 @@ const void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_small_int_floor_divide,
mp_small_int_modulo,
mp_native_yield_from,
+ #if MICROPY_NLR_SETJMP
+ setjmp,
+ #else
+ NULL,
+ #endif
};
#endif // MICROPY_EMIT_NATIVE