mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
Use MP_DEFINE_CONST_DICT macro to define module dicts.
This is just a clean-up of the code. Generated code is exactly the same.
This commit is contained in:
4
py/obj.h
4
py/obj.h
@@ -106,8 +106,8 @@ typedef struct _mp_obj_base_t mp_obj_base_t;
|
||||
.map = { \
|
||||
.all_keys_are_qstrs = 1, \
|
||||
.table_is_fixed_array = 1, \
|
||||
.used = sizeof(table_name) / sizeof(mp_map_elem_t), \
|
||||
.alloc = sizeof(table_name) / sizeof(mp_map_elem_t), \
|
||||
.used = MP_ARRAY_SIZE(table_name), \
|
||||
.alloc = MP_ARRAY_SIZE(table_name), \
|
||||
.table = (mp_map_elem_t*)table_name, \
|
||||
}, \
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user