diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-01 17:51:47 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-01 17:51:47 +0000 |
commit | 87413a4d0c579ec491cf52ab8d6520430df64c7d (patch) | |
tree | c19abcbf9275c5debd4436ed5146a4aab1ad4c7d /py/runtime.h | |
parent | 382b3d00ed9a2f31dcedbf65ce82cbada9b6dbdf (diff) | |
parent | 90750029df8d7fd24600cc4fe4c98a5b80731f28 (diff) | |
download | micropython-87413a4d0c579ec491cf52ab8d6520430df64c7d.tar.gz micropython-87413a4d0c579ec491cf52ab8d6520430df64c7d.zip |
Merge branch 'fun-defargs' of github.com:pfalcon/micropython into pfalcon-fun-defargs
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 c8113f4a7d..10c262a606 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -12,7 +12,7 @@ void rt_store_name(qstr qstr, mp_obj_t obj); void rt_store_global(qstr qstr, mp_obj_t obj); mp_obj_t rt_unary_op(int op, mp_obj_t arg); mp_obj_t rt_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs); -mp_obj_t rt_make_function_from_id(int unique_code_id); +mp_obj_t rt_make_function_from_id(int unique_code_id, mp_obj_t def_args); mp_obj_t rt_make_function_n(int n_args, void *fun); // fun must have the correct signature for n_args fixed arguments mp_obj_t rt_make_function_var(int n_args_min, mp_fun_var_t fun); mp_obj_t rt_make_function_var_between(int n_args_min, int n_args_max, mp_fun_var_t fun); // min and max are inclusive |