summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-06-01 13:49:35 +0100
committerDamien George <damien.p.george@gmail.com>2014-06-01 13:49:35 +0100
commitc49ddb9315b8a3839439727d5a3df1f4226777e1 (patch)
tree1c91fb61706f2f8083dd1564890679c7935348f5 /py/runtime.c
parent3ebd4d0cae58241c963cabd3cbd02fc9ca261a2f (diff)
py: Fix configurability of builtin slice.
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/runtime.c b/py/runtime.c
index cb4d16be1..ecaf40deb 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1185,7 +1185,9 @@ void *const mp_fun_table[MP_F_NUMBER_OF] = {
mp_import_name,
mp_import_from,
mp_import_all,
+#if MICROPY_PY_BUILTINS_SLICE
mp_obj_new_slice,
+#endif
mp_unpack_sequence,
mp_unpack_ex,
};