diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-01 15:33:50 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-01 15:33:50 +0000 |
commit | 7f23384d4920f7d1a4ea743a51a2d54fd0889e72 (patch) | |
tree | f6f46cda8f8173e329a6a53b67358d5203b521a4 /py/runtime.h | |
parent | 276159e5ddedfdb863bf34e4ae25c58621af5750 (diff) |
py: Make terse_arg_mismatch a global function and use it elsewhere.
Reduces code size when MICROPY_ERROR_REPORTING_TERSE is selected.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h index 54cc60c19..59d61e708 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -61,6 +61,7 @@ void mp_deinit(void); void mp_arg_check_num(mp_uint_t n_args, mp_uint_t n_kw, mp_uint_t n_args_min, mp_uint_t n_args_max, bool takes_kw); void mp_arg_parse_all(mp_uint_t n_pos, const mp_obj_t *pos, mp_map_t *kws, mp_uint_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals); void mp_arg_parse_all_kw_array(mp_uint_t n_pos, mp_uint_t n_kw, const mp_obj_t *args, mp_uint_t n_allowed, const mp_arg_t *allowed, mp_arg_val_t *out_vals); +NORETURN void mp_arg_error_terse_mismatch(void); NORETURN void mp_arg_error_unimpl_kw(void); mp_obj_dict_t *mp_locals_get(void); |