py_bindfunc method

void py_bindfunc(
  1. py_Ref obj,
  2. Pointer<Char> name,
  3. py_CFunction f
)

Bind a function to the object via "argc-based" style. @param obj the target object. @param name name of the function. @param f function to bind.

Implementation

void py_bindfunc(
  py_Ref obj,
  ffi.Pointer<ffi.Char> name,
  py_CFunction f,
) {
  return _py_bindfunc(
    obj,
    name,
    f,
  );
}