diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-04-20 16:06:22 +1000 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2022-05-18 20:49:12 +1000 |
| commit | 4eab44a1ec19f71e01b2c4f0747b95da0d34da77 (patch) | |
| tree | 3325196eebee1de9adb5f8eef08c7c0377640572 /py/moduerrno.c | |
| parent | 469450171f8d467d467a178f67cda53d962d17d0 (diff) | |
extmod: Make extmod modules use MP_REGISTER_MODULE.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/moduerrno.c')
| -rw-r--r-- | py/moduerrno.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/moduerrno.c b/py/moduerrno.c index d9affd9b2..4b61e0bda 100644 --- a/py/moduerrno.c +++ b/py/moduerrno.c @@ -99,6 +99,8 @@ const mp_obj_module_t mp_module_uerrno = { .globals = (mp_obj_dict_t *)&mp_module_uerrno_globals, }; +MP_REGISTER_MODULE(MP_QSTR_uerrno, mp_module_uerrno, MICROPY_PY_UERRNO); + qstr mp_errno_to_str(mp_obj_t errno_val) { #if MICROPY_PY_UERRNO_ERRORCODE // We have the errorcode dict so can do a lookup using the hash map |
