summaryrefslogtreecommitdiff
path: root/py/runtime0.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-09-26 16:24:06 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-26 16:24:06 +1000
commit96f2a3807583945042b628b5184b0c91cf2714a2 (patch)
treef7e10e8f770c7e1d66c2ced9c263a2ff339cb0a8 /py/runtime0.h
parent7d58a197cffa7c0dd3686402d2e381812bb8ddeb (diff)
py/nativeglue: Make mp_fun_table fixed size regardless of config.
So that mpy files with native code will always work correctly, and raise an exception if a feature is used that is not supported by the runtime.
Diffstat (limited to 'py/runtime0.h')
-rw-r--r--py/runtime0.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/py/runtime0.h b/py/runtime0.h
index ef1160859..fd284d47b 100644
--- a/py/runtime0.h
+++ b/py/runtime0.h
@@ -173,10 +173,8 @@ typedef enum {
MP_F_BUILD_TUPLE,
MP_F_BUILD_LIST,
MP_F_BUILD_MAP,
-#if MICROPY_PY_BUILTINS_SET
MP_F_BUILD_SET,
MP_F_STORE_SET,
-#endif
MP_F_LIST_APPEND,
MP_F_STORE_MAP,
MP_F_MAKE_FUNCTION_FROM_RAW_CODE,
@@ -191,9 +189,7 @@ typedef enum {
MP_F_IMPORT_NAME,
MP_F_IMPORT_FROM,
MP_F_IMPORT_ALL,
-#if MICROPY_PY_BUILTINS_SLICE
MP_F_NEW_SLICE,
-#endif
MP_F_UNPACK_SEQUENCE,
MP_F_UNPACK_EX,
MP_F_DELETE_NAME,