aboutsummaryrefslogtreecommitdiff
path: root/py/moduerrno.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/moduerrno.c')
-rw-r--r--py/moduerrno.c2
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