summaryrefslogtreecommitdiff
path: root/py/runtime0.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-10 13:44:22 +1000
committerDamien George <damien.p.george@gmail.com>2019-10-05 13:41:58 +1000
commit3504edc8048f8ab038ace50b0bbdf65b30619cc5 (patch)
tree81f29a430d623e178ef4f29f9be4bbc592d764d8 /py/runtime0.h
parent4107597b845c04b7184215b3202d596998141cb9 (diff)
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.
Diffstat (limited to 'py/runtime0.h')
-rw-r--r--py/runtime0.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime0.h b/py/runtime0.h
index 1df6d0d58..797ae00e6 100644
--- a/py/runtime0.h
+++ b/py/runtime0.h
@@ -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;