diff options
author | Damien George <damien@micropython.org> | 2021-07-27 00:39:04 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-03-10 10:43:21 +1100 |
commit | bc181550a4790f4dcfaf10e7e61ecfcdf346d5a8 (patch) | |
tree | be0e3389c6de1bb02af4a67fbe1cae4c0402b60a /py/mpconfig.h | |
parent | 3356b5ef8d1b232a1df493f70f0ba434f293fe11 (diff) |
py/modsys: Add optional attribute delegation.
To be enabled when needed by specific sys attributes.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 2b03b93f4..617e89708 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1377,6 +1377,12 @@ typedef double mp_float_t; #define MICROPY_PY_SYS_STDIO_BUFFER (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES) #endif +// Whether the sys module supports attribute delegation +// This is enabled automatically when needed by other features +#ifndef MICROPY_PY_SYS_ATTR_DELEGATION +#define MICROPY_PY_SYS_ATTR_DELEGATION (0) +#endif + // Whether to provide "uerrno" module #ifndef MICROPY_PY_UERRNO #define MICROPY_PY_UERRNO (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES) |