summaryrefslogtreecommitdiff
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-09-30 23:34:42 +1000
committerDamien George <damien@micropython.org>2020-10-01 15:26:43 +1000
commit843dcd4f8515c62b32b4b25dc3b01fba107622e2 (patch)
treeea114c703e6a1a4361bfb103e4afa68c8b14aaca /py/mpconfig.h
parentd4b61b00172ccc231307e3ef33f66f28cb6b051f (diff)
py/parse: Expose rule-name printing as MICROPY_DEBUG_PARSE_RULE_NAME.
So it can be enabled without modifying the source. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 12517316c..cc83f3850 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -454,6 +454,11 @@
#define MICROPY_DEBUG_MP_OBJ_SENTINELS (0)
#endif
+// Whether to print parse rule names (rather than integers) in mp_parse_node_print
+#ifndef MICROPY_DEBUG_PARSE_RULE_NAME
+#define MICROPY_DEBUG_PARSE_RULE_NAME (0)
+#endif
+
// Whether to enable a simple VM stack overflow check
#ifndef MICROPY_DEBUG_VM_STACK_OVERFLOW
#define MICROPY_DEBUG_VM_STACK_OVERFLOW (0)