diff options
author | Damien George <damien@micropython.org> | 2021-12-09 12:52:27 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-12-09 12:53:04 +1100 |
commit | efde4b2c756033715919ec80084f3399e8d16921 (patch) | |
tree | 1acc6bbebfb647a15c528a3e68f2dc6c7f4be0ec /extmod/modure.c | |
parent | 71168ec55c4059ecfe44b0be166248ce0b7935b5 (diff) |
extmod/modure: Redirect regex debug printing to mp_printf.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modure.c')
-rw-r--r-- | extmod/modure.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/extmod/modure.c b/extmod/modure.c index 738a2b984..36c987a80 100644 --- a/extmod/modure.c +++ b/extmod/modure.c @@ -454,11 +454,16 @@ const mp_obj_module_t mp_module_ure = { // only if module is enabled by config setting. #define re1_5_fatal(x) assert(!x) + #include "lib/re1.5/compilecode.c" +#include "lib/re1.5/recursiveloop.c" +#include "lib/re1.5/charclass.c" + #if MICROPY_PY_URE_DEBUG +// Make sure the output print statements go to the same output as other Python output. +#define printf(...) mp_printf(&mp_plat_print, __VA_ARGS__) #include "lib/re1.5/dumpcode.c" +#undef printf #endif -#include "lib/re1.5/recursiveloop.c" -#include "lib/re1.5/charclass.c" #endif // MICROPY_PY_URE |