summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-08-17 23:50:19 +1000
committerDamien George <damien.p.george@gmail.com>2019-08-19 16:43:00 +1000
commit7d851a27f146188752e89bb026021fb8d3985395 (patch)
tree3af741a441e5c3158afc309f379583f41e52733c /py/mpconfig.h
parent3a679eaf00b909980ad38344ec0c7395adcd0564 (diff)
downloadmicropython-7d851a27f146188752e89bb026021fb8d3985395.tar.gz
micropython-7d851a27f146188752e89bb026021fb8d3985395.zip
extmod/modure: Make regex dump-code debugging feature optional.
Enabled via MICROPY_PY_URE_DEBUG, disabled by default (but enabled on unix coverage build). This is a rarely used feature that costs a lot of code (500-800 bytes flash). Debugging of regular expressions can be done offline with other tools.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index e8f60bd77f..57dec3cf26 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1259,6 +1259,10 @@ typedef double mp_float_t;
#define MICROPY_PY_URE (0)
#endif
+#ifndef MICROPY_PY_URE_DEBUG
+#define MICROPY_PY_URE_DEBUG (0)
+#endif
+
#ifndef MICROPY_PY_URE_MATCH_GROUPS
#define MICROPY_PY_URE_MATCH_GROUPS (0)
#endif