summaryrefslogtreecommitdiff
path: root/py/runtime.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-22 01:33:55 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-22 01:33:55 +0300
commit037e6912c60f4f05a3866d525392f9c76914d0f1 (patch)
tree454ce0843a4fe2cb27a138b38f7f2f562aee3838 /py/runtime.h
parent7e820792dadde74ac283465b9497ad4c313db379 (diff)
py/objtype: Implement __call__ handling for an instance w/o heap alloc.
By refactoring and reusing code from objboundmeth.
Diffstat (limited to 'py/runtime.h')
-rw-r--r--py/runtime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime.h b/py/runtime.h
index 80488098a..3532b838d 100644
--- a/py/runtime.h
+++ b/py/runtime.h
@@ -95,6 +95,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(mp_obj_t fun, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args);
mp_obj_t mp_call_method_n_kw(mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args);
mp_obj_t mp_call_method_n_kw_var(bool have_self, mp_uint_t n_args_n_kw, const mp_obj_t *args);
+mp_obj_t mp_call_method_self_n_kw(mp_obj_t meth, mp_obj_t self, size_t n_args, size_t n_kw, const mp_obj_t *args);
// Call function and catch/dump exception - for Python callbacks from C code
void mp_call_function_1_protected(mp_obj_t fun, mp_obj_t arg);
void mp_call_function_2_protected(mp_obj_t fun, mp_obj_t arg1, mp_obj_t arg2);