File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,14 @@ STATIC const mp_rom_map_elem_t rtch_locals_dict_table[] = {
148
148
149
149
STATIC MP_DEFINE_CONST_DICT (rtch_locals_dict , rtch_locals_dict_table );
150
150
151
- STATIC const mp_obj_type_t rtch_type = {
152
- { & mp_type_type },
153
- .name = MP_QSTR_rtch ,
154
- //.print = rtch_print,
155
- .make_new = rtch_make_new ,
156
- .locals_dict = (mp_obj_dict_t * )& rtch_locals_dict ,
157
- };
151
+ STATIC MP_DEFINE_CONST_OBJ_TYPE (
152
+ rtch_type ,
153
+ MP_QSTR_rtch ,
154
+ MP_TYPE_FLAG_NONE ,
155
+ //print, rtch_print,
156
+ make_new , rtch_make_new ,
157
+ locals_dict , (mp_obj_dict_t * )& rtch_locals_dict
158
+ );
158
159
159
160
STATIC const mp_rom_map_elem_t rtch_globals_table [] = {
160
161
{ MP_ROM_QSTR (MP_QSTR___name__ ), MP_ROM_QSTR (MP_QSTR_rtch ) },
You can’t perform that action at this time.
0 commit comments