py: Make builtin modules use MP_REGISTER_MODULE.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -435,4 +435,6 @@ const mp_obj_module_t mp_module_math = {
|
||||
.globals = (mp_obj_dict_t *)&mp_module_math_globals,
|
||||
};
|
||||
|
||||
MP_REGISTER_MODULE(MP_QSTR_math, mp_module_math, MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_MATH);
|
||||
|
||||
#endif // MICROPY_PY_BUILTINS_FLOAT && MICROPY_PY_MATH
|
||||
|
||||
Reference in New Issue
Block a user