summaryrefslogtreecommitdiffstatshomepage
path: root/py/parse.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-30 11:51:25 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-30 11:51:25 +1000
commit414537711dd05531c63eb830bfc9c3eecf657b1e (patch)
treee885b26c0e1ef94b189955546015893d704aaa1e /py/parse.c
parent39b465ca831d0ec866c2a137dccbfec7f7badfba (diff)
downloadmicropython-414537711dd05531c63eb830bfc9c3eecf657b1e.tar.gz
micropython-414537711dd05531c63eb830bfc9c3eecf657b1e.zip
py: Add MICROPY_USE_SMALL_HEAP_COMPILER option, disabled by default.
This new option allows the original and new parser/compiler to coexist.
Diffstat (limited to 'py/parse.c')
-rw-r--r--py/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/parse.c b/py/parse.c
index e399aac535..694b319b39 100644
--- a/py/parse.c
+++ b/py/parse.c
@@ -41,7 +41,7 @@
#include "py/objstr.h"
#include "py/builtin.h"
-#if MICROPY_ENABLE_COMPILER
+#if MICROPY_ENABLE_COMPILER && !MICROPY_USE_SMALL_HEAP_COMPILER
#define RULE_ACT_ARG_MASK (0x0f)
#define RULE_ACT_KIND_MASK (0x30)
@@ -1081,4 +1081,4 @@ void mp_parse_tree_clear(mp_parse_tree_t *tree) {
}
}
-#endif // MICROPY_ENABLE_COMPILER
+#endif // MICROPY_ENABLE_COMPILER && !MICROPY_USE_SMALL_HEAP_COMPILER