summaryrefslogtreecommitdiff
path: root/py/runtime.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-26 23:09:14 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-26 23:09:14 +0000
commitd6f94340916bc5eabcf51d7afea523885adce818 (patch)
treebc59b126181dcf37868b72f5edbb6e74c1b0c1f3 /py/runtime.h
parenteed6f26bed82969e3c9954159b17fe2733f4cb42 (diff)
parent2447a5b582503b70936681702062704e2e9f44d3 (diff)
Merge pull request #381 from pfalcon/closure-defargs
py: Support closures with default args.
Diffstat (limited to 'py/runtime.h')
-rw-r--r--py/runtime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h
index f5e4a49cf..553a83468 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -19,7 +19,7 @@ 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
-mp_obj_t rt_make_closure_from_id(int unique_code_id, mp_obj_t closure_tuple);
+mp_obj_t rt_make_closure_from_id(int unique_code_id, mp_obj_t closure_tuple, mp_obj_t def_args);
mp_obj_t rt_call_function_0(mp_obj_t fun);
mp_obj_t rt_call_function_1(mp_obj_t fun, mp_obj_t arg);
mp_obj_t rt_call_function_2(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2);