@@ -88,6 +88,7 @@ static inline void *m_realloc_dyn(void *ptr, size_t new_num_bytes) {
88
88
#define mp_type_int (*(mp_obj_type_t *)(mp_load_global(MP_QSTR_int)))
89
89
#define mp_type_str (*mp_fun_table.type_str)
90
90
#define mp_type_bytes (*(mp_obj_type_t *)(mp_load_global(MP_QSTR_bytes)))
91
+ #define mp_type_bytearray (*(mp_obj_type_t *)(mp_load_global(MP_QSTR_bytearray)))
91
92
#define mp_type_tuple (*((mp_obj_base_t *)mp_const_empty_tuple)->type)
92
93
#define mp_type_list (*mp_fun_table.type_list)
93
94
#define mp_type_Exception (*mp_fun_table.type_Exception)
@@ -194,6 +195,7 @@ static inline void *mp_obj_malloc_helper_dyn(size_t num_bytes, const mp_obj_type
194
195
#define mp_load_global (qst ) (mp_fun_table.load_global((qst)))
195
196
#define mp_load_attr (base , attr ) (mp_fun_table.load_attr((base), (attr)))
196
197
#define mp_load_method (base , attr , dest ) (mp_fun_table.load_method((base), (attr), (dest)))
198
+ #define mp_load_method_maybe (base , attr , dest ) (mp_fun_table.load_method_maybe((base), (attr), (dest)))
197
199
#define mp_load_super_method (attr , dest ) (mp_fun_table.load_super_method((attr), (dest)))
198
200
#define mp_store_name (qst , obj ) (mp_fun_table.store_name((qst), (obj)))
199
201
#define mp_store_global (qst , obj ) (mp_fun_table.store_global((qst), (obj)))
@@ -211,6 +213,12 @@ static inline void *mp_obj_malloc_helper_dyn(size_t num_bytes, const mp_obj_type
211
213
#define mp_arg_check_num (n_args , n_kw , n_args_min , n_args_max , takes_kw ) \
212
214
(mp_fun_table.arg_check_num_sig((n_args), (n_kw), MP_OBJ_FUN_MAKE_SIG((n_args_min), (n_args_max), (takes_kw))))
213
215
216
+ #define mp_arg_parse_all (n_pos , pos , kws , n_allowed , allowed , out_vals ) \
217
+ (mp_fun_table.arg_parse_all((n_pos), (pos), (kws), (n_allowed), (allowed), (out_vals)))
218
+
219
+ #define mp_arg_parse_all_kw_array (n_pos , n_kw , args , n_allowed , allowed , out_vals ) \
220
+ (mp_fun_table.arg_parse_all_kw_array((n_pos), (n_kw), (args), (n_allowed), (allowed), (out_vals)))
221
+
214
222
#define MP_DYNRUNTIME_INIT_ENTRY \
215
223
mp_obj_t old_globals = mp_fun_table.swap_globals(self->context->module.globals); \
216
224
mp_raw_code_truncated_t rc; \
0 commit comments