py_call method

bool py_call(
  1. py_Ref f,
  2. int argc,
  3. py_Ref argv
)

Call a function. It prepares the stack and then performs a vectorcall(argc, 0, false). The result will be set to py_retval(). The stack remains unchanged after the operation.

Implementation

bool py_call(
  py_Ref f,
  int argc,
  py_Ref argv,
) {
  return _py_call(
    f,
    argc,
    argv,
  );
}