mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
py/moduerrno: Make uerrno.errorcode dict configurable.
It's configured by MICROPY_PY_UERRNO_ERRORCODE and enabled by default (since that's the behaviour before this patch). Without this dict the lookup of errno codes to strings must use the uerrno module itself.
This commit is contained in:
@@ -917,6 +917,11 @@ typedef double mp_float_t;
|
||||
#define MICROPY_PY_UERRNO (0)
|
||||
#endif
|
||||
|
||||
// Whether to provide the uerrno.errorcode dict
|
||||
#ifndef MICROPY_PY_UERRNO_ERRORCODE
|
||||
#define MICROPY_PY_UERRNO_ERRORCODE (1)
|
||||
#endif
|
||||
|
||||
// Whether to provide "uselect" module (baremetal implementation)
|
||||
#ifndef MICROPY_PY_USELECT
|
||||
#define MICROPY_PY_USELECT (0)
|
||||
|
||||
Reference in New Issue
Block a user