py_newobject method

Pointer<Void> py_newobject(
  1. py_OutRef out,
  2. int type,
  3. int slots,
  4. int udsize,
)

Create a new object. @param out output reference. @param type type of the object. @param slots number of slots. Use -1 to create a __dict__. @param udsize size of your userdata. @return pointer to the userdata.

Implementation

ffi.Pointer<ffi.Void> py_newobject(
  py_OutRef out,
  int type,
  int slots,
  int udsize,
) {
  return _py_newobject(
    out,
    type,
    slots,
    udsize,
  );
}