mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-24 21:40:16 +00:00
536 B
536 B
| title | icon | order |
|---|---|---|
| Callables | dot | 6 |
bool pkpy_call(pkpy_vm*, int argc)
First push callable you want to call, then push the arguments to send.
argcis the number of arguments that was pushed (not counting the callable).
bool pkpy_call_method(pkpy_vm*, const char* name, int argc)
First push the object the method belongs to (self), then push the the argments.
argcis the number of arguments that was pushed (not counting the callable or self)nameis the name of the method to call on the object