summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-03 03:01:12 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-04 02:35:48 +0200
commitcd22627f781080fb245dd6999f2158c8099379b0 (patch)
tree68a794216e73568949684d79d16d6c23a7a9f36a /py
parent31ba60f8364a4009ddc3d45fee90c84b43d88d2c (diff)
downloadmicropython-cd22627f781080fb245dd6999f2158c8099379b0.tar.gz
micropython-cd22627f781080fb245dd6999f2158c8099379b0.zip
Enable slice support in config.
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 44095bd10b..56495d9156 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -25,3 +25,9 @@
#ifndef MICROPY_MEM_STATS
#define MICROPY_MEM_STATS (1)
#endif
+
+// Whether to support slice object and correspondingly
+// slice subscript operators
+#ifndef MICROPY_ENABLE_SLICE
+#define MICROPY_ENABLE_SLICE (1)
+#endif