diff options
| author | Damien George | 2014-03-30 21:21:24 +0100 |
|---|---|---|
| committer | Damien George | 2014-03-30 21:21:24 +0100 |
| commit | 230fec77d7bd9bae5e86a009d549550d6047fd07 (patch) | |
| tree | 2620e7898155d2973153fba69cab5aab0ace54d0 /py/runtime.h | |
| parent | f6a820903afe12760b27553831c3bdb16c50b985 (diff) | |
py: Implement positional and keyword args via * and **.
Extends previous implementation with * for function calls to * and **
for both function and method calls.
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 b3d70d939..8487309a1 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -37,6 +37,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_build_tuple(int n_args, mp_obj_t *items); mp_obj_t mp_build_list(int n_args, mp_obj_t *items); |
