py_bind method

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

Bind a function to the object via "decl-based" style. @param obj the target object. @param sig signature of the function. e.g. add(x, y). @param f function to bind.

Implementation

void py_bind(
  py_Ref obj,
  ffi.Pointer<ffi.Char> sig,
  py_CFunction f,
) {
  return _py_bind(
    obj,
    sig,
    f,
  );
}