diff options
author | Damien George <damien.p.george@gmail.com> | 2018-05-24 13:08:51 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-07-02 14:55:02 +1000 |
commit | e30a5fc7bcd27900e0657db97ed54fc056d8f852 (patch) | |
tree | 83f40bfb3a4e5b27bf89f0fdd3fbaf67f795c76b /py | |
parent | 1e9b871d295ff3c8ab6d9cd0fafa94c52271820a (diff) |
extmod/modure: Add ure.sub() function and method, and tests.
This feature is controlled at compile time by MICROPY_PY_URE_SUB, disabled
by default.
Thanks to @dmazzella for the original patch for this feature; see #3770.
Diffstat (limited to 'py')
-rw-r--r-- | py/mpconfig.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 727375b12..8b0f291cb 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1150,6 +1150,10 @@ typedef double mp_float_t; #define MICROPY_PY_URE_MATCH_SPAN_START_END (0) #endif +#ifndef MICROPY_PY_URE_SUB +#define MICROPY_PY_URE_SUB (0) +#endif + #ifndef MICROPY_PY_UHEAPQ #define MICROPY_PY_UHEAPQ (0) #endif |