MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / Py_REFCNT

Function Py_REFCNT

python27-sys/src/object.rs:31–33  ·  view source on GitHub ↗
(ob: *mut PyObject)

Source from the content-addressed store, hash-verified

29
30#[inline(always)]
31pub unsafe fn Py_REFCNT(ob: *mut PyObject) -> Py_ssize_t {
32 (*ob).ob_refcnt
33}
34
35#[inline(always)]
36pub unsafe fn Py_TYPE(ob: *mut PyObject) -> *mut PyTypeObject {

Callers 1

PyWeakref_GET_OBJECTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected