Lines Matching refs:allowed
79 …s, const mp_obj_t *pos, mp_map_t *kws, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *ou… in mp_arg_parse_all() argument
84 if (allowed[i].flags & MP_ARG_KW_ONLY) { in mp_arg_parse_all()
90 mp_map_elem_t *kw = mp_map_lookup(kws, MP_OBJ_NEW_QSTR(allowed[i].qst), MP_MAP_LOOKUP); in mp_arg_parse_all()
92 if (allowed[i].flags & MP_ARG_REQUIRED) { in mp_arg_parse_all()
96 … mp_raise_msg_varg(&mp_type_TypeError, MP_ERROR_TEXT("'%q' argument required"), allowed[i].qst); in mp_arg_parse_all()
99 out_vals[i] = allowed[i].defval; in mp_arg_parse_all()
106 if ((allowed[i].flags & MP_ARG_KIND_MASK) == MP_ARG_BOOL) { in mp_arg_parse_all()
108 } else if ((allowed[i].flags & MP_ARG_KIND_MASK) == MP_ARG_INT) { in mp_arg_parse_all()
111 assert((allowed[i].flags & MP_ARG_KIND_MASK) == MP_ARG_OBJ); in mp_arg_parse_all()
134 …os, size_t n_kw, const mp_obj_t *args, size_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *ou… in mp_arg_parse_all_kw_array() argument
137 mp_arg_parse_all(n_pos, args, &kw_args, n_allowed, allowed, out_vals); in mp_arg_parse_all_kw_array()