diff options
author | Damien George <damien.p.george@gmail.com> | 2014-03-31 11:59:23 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-03-31 11:59:23 +0100 |
commit | 523b575039d96d63669ad8c1fa318ba4db046aca (patch) | |
tree | bc191c86845b3c5714d11f24e8848f22020308e5 /py/runtime.h | |
parent | 3056509e00c02e4faef44d90bf3953dcf0b0d4a0 (diff) | |
download | micropython-523b575039d96d63669ad8c1fa318ba4db046aca.tar.gz micropython-523b575039d96d63669ad8c1fa318ba4db046aca.zip |
py: Add LOAD_NULL bytecode and use it to simplify function calls.
Adding this bytecode allows to remove 4 others related to
function/method calls with * and ** support. Will also help with
bytecodes that make functions/closures with default positional and
keyword args.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h index f79cb2e306..d71e045b01 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -43,7 +43,7 @@ mp_obj_t mp_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2); mp_obj_t mp_call_function_n_kw_for_native(mp_obj_t fun_in, uint n_args_kw, const mp_obj_t *args); mp_obj_t mp_call_function_n_kw(mp_obj_t fun, uint n_args, uint n_kw, const mp_obj_t *args); mp_obj_t mp_call_method_n_kw(uint n_args, uint n_kw, const mp_obj_t *args); -mp_obj_t mp_call_method_n_kw_var(bool have_self, uint n_args_n_kw, const mp_obj_t *args, mp_obj_t pos_seq, mp_obj_t kw_dict); +mp_obj_t mp_call_method_n_kw_var(bool have_self, uint n_args_n_kw, const mp_obj_t *args); mp_obj_t mp_build_tuple(int n_args, mp_obj_t *items); mp_obj_t mp_build_list(int n_args, mp_obj_t *items); |