py: Add uerrno module, with errno constants and dict.

This commit is contained in:
Damien George
2016-05-10 10:54:25 +01:00
parent 3f56fd64b8
commit 596a3feb8f
5 changed files with 87 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
// extmod modules
#if MICROPY_PY_UERRNO
{ MP_ROM_QSTR(MP_QSTR_uerrno), MP_ROM_PTR(&mp_module_uerrno) },
#endif
#if MICROPY_PY_UCTYPES
{ MP_ROM_QSTR(MP_QSTR_uctypes), MP_ROM_PTR(&mp_module_uctypes) },
#endif