mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
modure: Make sure that re1.5 compiled in only of modure itself is enabled.
This is achieved by including re1.5 *.c files straight from modure.c .
This commit is contained in:
@@ -238,4 +238,12 @@ const mp_obj_module_t mp_module_ure = {
|
||||
.globals = (mp_obj_dict_t*)&mp_module_re_globals,
|
||||
};
|
||||
|
||||
// Source files #include'd here to make sure they're compiled in
|
||||
// only if module is enabled by config setting.
|
||||
|
||||
#define re1_5_fatal(x) assert(!x)
|
||||
#include "re1.5/compilecode.c"
|
||||
#include "re1.5/dumpcode.c"
|
||||
#include "re1.5/recursiveloop.c"
|
||||
|
||||
#endif //MICROPY_PY_URE
|
||||
|
||||
Reference in New Issue
Block a user