diff options
author | Damien George <damien@micropython.org> | 2022-05-05 11:02:38 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-05-05 11:02:38 +1000 |
commit | 1216c9fffa6345e4df9e4311283f88eeb0891cbc (patch) | |
tree | e21da555ba0b886ec1dc6dc5644f34b785732dcd /py | |
parent | da31ad7aadfee0f334af97a8e256e642d058917f (diff) |
py/objmodule: Move stray #include to top of file.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r-- | py/objmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objmodule.c b/py/objmodule.c index 0cd10e61f..b109d723a 100644 --- a/py/objmodule.c +++ b/py/objmodule.c @@ -29,6 +29,7 @@ #include <string.h> #include <assert.h> +#include "py/bc.h" #include "py/objmodule.h" #include "py/runtime.h" #include "py/builtin.h" @@ -132,7 +133,6 @@ const mp_obj_type_t mp_type_module = { .attr = module_attr, }; -#include "py/bc.h" mp_obj_t mp_obj_new_module(qstr module_name) { mp_map_t *mp_loaded_modules_map = &MP_STATE_VM(mp_loaded_modules_dict).map; mp_map_elem_t *el = mp_map_lookup(mp_loaded_modules_map, MP_OBJ_NEW_QSTR(module_name), MP_MAP_LOOKUP_ADD_IF_NOT_FOUND); |