diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-26 23:30:38 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-26 23:30:38 +1100 |
commit | e9cb1f807762f8adc1f5b6220b616ce6daf1303f (patch) | |
tree | 3a1696118cdbc64e79bd896d3f03b82163dea4a8 /py/objmodule.h | |
parent | bf51200bc10858552f3cc6989afe0fe51b57a4f2 (diff) |
py/objmodule: Move module init/deinit code into runtime functions.
They are one-line functions and having them inline in mp_init/mp_deinit
eliminates the overhead of a function call, and matches how other state
is initialised in mp_init.
Diffstat (limited to 'py/objmodule.h')
-rw-r--r-- | py/objmodule.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/py/objmodule.h b/py/objmodule.h index 937ff8416..4e6612adc 100644 --- a/py/objmodule.h +++ b/py/objmodule.h @@ -31,8 +31,6 @@ extern const mp_map_t mp_builtin_module_map; extern const mp_map_t mp_builtin_module_weak_links_map; -void mp_module_init(void); -void mp_module_deinit(void); mp_obj_t mp_module_get(qstr module_name); void mp_module_register(qstr qstr, mp_obj_t module); |