py/emitnative: Add support for using setjmp with native emitter.

To enable this feature the N_NLR_SETJMP macro should be set to 1 before
including py/emitnative.c.
This commit is contained in:
Damien George
2019-09-10 13:44:22 +10:00
parent 4107597b84
commit 3504edc804
3 changed files with 24 additions and 0 deletions

View File

@@ -201,6 +201,7 @@ typedef enum {
MP_F_SMALL_INT_FLOOR_DIVIDE,
MP_F_SMALL_INT_MODULO,
MP_F_NATIVE_YIELD_FROM,
MP_F_SETJMP,
MP_F_NUMBER_OF,
} mp_fun_kind_t;