diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-06 12:58:40 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-06 12:58:40 +0100 |
commit | cdd96dff2c017c952a238989c10f70143a8dd7d3 (patch) | |
tree | 40f3bf8b2dec68b14ff7ae66ef667b65d90b6527 /py/runtime.h | |
parent | 65cad12d388423f7d9b04a5ae3d7c1b5b176a2da (diff) |
py: Implement more features in native emitter.
On x64, native emitter now passes 70 of the tests.
Diffstat (limited to 'py/runtime.h')
-rw-r--r-- | py/runtime.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/runtime.h b/py/runtime.h index 8e59550af..cc76186f4 100644 --- a/py/runtime.h +++ b/py/runtime.h @@ -28,7 +28,8 @@ mp_obj_t mp_load_const_dec(qstr qstr); mp_obj_t mp_load_const_str(qstr qstr); mp_obj_t mp_load_const_bytes(qstr qstr); -mp_obj_t mp_make_function_from_id(uint unique_code_id, bool free_unique_code, mp_obj_t def_args, mp_obj_t def_kw_args); +mp_obj_t mp_make_function_from_id(uint unique_code_id, mp_obj_t def_args, mp_obj_t def_kw_args); +mp_obj_t mp_make_function_from_id_and_free(uint unique_code_id, mp_obj_t def_args, mp_obj_t def_kw_args); mp_obj_t mp_make_function_n(int n_args, void *fun); // fun must have the correct signature for n_args fixed arguments mp_obj_t mp_make_function_var(int n_args_min, mp_fun_var_t fun); mp_obj_t mp_make_function_var_between(int n_args_min, int n_args_max, mp_fun_var_t fun); // min and max are inclusive |