py_newfunction method

int py_newfunction(
  1. py_OutRef out,
  2. Pointer<Char> sig,
  3. py_CFunction f,
  4. Pointer<Char> docstring,
  5. int slots,
)

Create a function object.

Implementation

int py_newfunction(
  py_OutRef out,
  ffi.Pointer<ffi.Char> sig,
  py_CFunction f,
  ffi.Pointer<ffi.Char> docstring,
  int slots,
) {
  return _py_newfunction(
    out,
    sig,
    f,
    docstring,
    slots,
  );
}