py/modsys: Implement optional sys.intern.

Signed-off-by: stijn <stijn@ignitron.net>
This commit is contained in:
stijn
2023-12-04 15:54:59 +01:00
committed by Damien George
parent 05d3b22301
commit 85c02166ca
4 changed files with 32 additions and 4 deletions

View File

@@ -1434,6 +1434,11 @@ typedef double mp_float_t;
#define MICROPY_PY_SYS_EXECUTABLE (0)
#endif
// Whether to provide "sys.intern"
#ifndef MICROPY_PY_SYS_INTERN
#define MICROPY_PY_SYS_INTERN (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EVERYTHING)
#endif
// Whether to provide "sys.exit" function
#ifndef MICROPY_PY_SYS_EXIT
#define MICROPY_PY_SYS_EXIT (1)