mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py/mpconfig: Rename MICROPY_PY___FILE__ to MICROPY_MODULE___FILE__.
For consistency with other module-related configuration options. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -990,6 +990,11 @@ typedef time_t mp_timestamp_t;
|
||||
#define MICROPY_STREAMS_POSIX_API (0)
|
||||
#endif
|
||||
|
||||
// Whether to set __file__ on imported modules.
|
||||
#ifndef MICROPY_MODULE___FILE__
|
||||
#define MICROPY_MODULE___FILE__ (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES)
|
||||
#endif
|
||||
|
||||
// Whether modules can use MP_REGISTER_MODULE_DELEGATION() to delegate failed
|
||||
// attribute lookups to a custom handler function.
|
||||
#ifndef MICROPY_MODULE_ATTR_DELEGATION
|
||||
@@ -1422,11 +1427,6 @@ typedef time_t mp_timestamp_t;
|
||||
#define MICROPY_PY_BUILTINS_HELP_MODULES (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_EXTRA_FEATURES)
|
||||
#endif
|
||||
|
||||
// Whether to set __file__ for imported modules
|
||||
#ifndef MICROPY_PY___FILE__
|
||||
#define MICROPY_PY___FILE__ (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_CORE_FEATURES)
|
||||
#endif
|
||||
|
||||
// Whether to process __all__ when importing all public symbols from module
|
||||
#ifndef MICROPY_MODULE___ALL__
|
||||
#define MICROPY_MODULE___ALL__ (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_BASIC_FEATURES)
|
||||
|
||||
Reference in New Issue
Block a user