py_vectorcall method

bool py_vectorcall(
  1. int argc,
  2. int kwargc
)

Call a callable object via pocketpy's calling convention. You need to prepare the stack using this form: callable, self/nil, arg1, arg2, ..., k1, v1, k2, v2, ... argc is the number of positional arguments excluding self. kwargc is the number of keyword arguments, i.e. the number of key-value pairs. The result will be set to py_retval(). The stack size will be reduced by 2 + argc + kwargc * 2.

Implementation

bool py_vectorcall(
  int argc,
  int kwargc,
) {
  return _py_vectorcall(
    argc,
    kwargc,
  );
}