py_bind method
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,
);
}