diff options
author | Damien George <damien.p.george@gmail.com> | 2019-11-05 11:38:01 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-12-12 20:15:28 +1100 |
commit | bbeaafd9aa0378a4478b0e82d355bd0eee953c84 (patch) | |
tree | 33efc1182bbc044e052106e5ed3ac72afe595895 /extmod/moduheapq.c | |
parent | e5acd06ad5b7cc144fb26d29baaa041ced065d45 (diff) |
extmod: Add dynamic-runtime guards to btree/framebuf/uheapq/ure/uzlib.
So they can be built as dynamic native modules, as well as existing static
native modules.
Diffstat (limited to 'extmod/moduheapq.c')
-rw-r--r-- | extmod/moduheapq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/moduheapq.c b/extmod/moduheapq.c index f63305210..2e8010143 100644 --- a/extmod/moduheapq.c +++ b/extmod/moduheapq.c @@ -103,6 +103,7 @@ STATIC mp_obj_t mod_uheapq_heapify(mp_obj_t heap_in) { } STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_uheapq_heapify_obj, mod_uheapq_heapify); +#if !MICROPY_ENABLE_DYNRUNTIME STATIC const mp_rom_map_elem_t mp_module_uheapq_globals_table[] = { { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_uheapq) }, { MP_ROM_QSTR(MP_QSTR_heappush), MP_ROM_PTR(&mod_uheapq_heappush_obj) }, @@ -116,5 +117,6 @@ const mp_obj_module_t mp_module_uheapq = { .base = { &mp_type_module }, .globals = (mp_obj_dict_t*)&mp_module_uheapq_globals, }; +#endif #endif //MICROPY_PY_UHEAPQ |