mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
py: Add MP_ROM_* macros and mp_rom_* types and use them.
This commit is contained in:
@@ -417,9 +417,9 @@ STATIC void push_result_token(parser_t *parser) {
|
||||
}
|
||||
|
||||
#if MICROPY_COMP_MODULE_CONST
|
||||
STATIC const mp_map_elem_t mp_constants_table[] = {
|
||||
STATIC const mp_rom_map_elem_t mp_constants_table[] = {
|
||||
#if MICROPY_PY_UCTYPES
|
||||
{ MP_OBJ_NEW_QSTR(MP_QSTR_uctypes), (mp_obj_t)&mp_module_uctypes },
|
||||
{ MP_ROM_QSTR(MP_QSTR_uctypes), MP_ROM_PTR(&mp_module_uctypes) },
|
||||
#endif
|
||||
// Extra constants as defined by a port
|
||||
MICROPY_PORT_CONSTANTS
|
||||
|
||||
Reference in New Issue
Block a user