mirror of
https://github.com/micropython/micropython.git
synced 2026-01-27 22:30:20 +01:00
py/mpconfig: Enable MICROPY_PY_FUNCTION_ATTRS_CODE when marshal enabled.
In case `MICROPY_PY_MARSHAL` is enabled manually. Otherwise the marshal module is not very usable. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -1281,7 +1281,7 @@ typedef time_t mp_timestamp_t;
|
||||
|
||||
// Whether to implement the __code__ attribute on functions, and function constructor
|
||||
#ifndef MICROPY_PY_FUNCTION_ATTRS_CODE
|
||||
#define MICROPY_PY_FUNCTION_ATTRS_CODE (MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_FULL_FEATURES)
|
||||
#define MICROPY_PY_FUNCTION_ATTRS_CODE (MICROPY_PY_MARSHAL || MICROPY_CONFIG_ROM_LEVEL_AT_LEAST_FULL_FEATURES)
|
||||
#endif
|
||||
|
||||
// Whether bound_method can just use == (feature disabled), or requires a call to
|
||||
|
||||
Reference in New Issue
Block a user