getRefCount function

int getRefCount(
  1. Pointer<PyObject> ptr
)

Implementation

int getRefCount(Pointer<g.PyObject> ptr) => Platform.isWindows
    ? ptr.cast<_PyObjectDebugWin>().ref.count
    : ptr.cast<_PyObjectDebugPosix>().ref.count;