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

Function PyObject_GET_WEAKREFS_LISTPTR

python27-sys/src/objimpl.rs:72–75  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

70
71#[inline(always)]
72pub unsafe fn PyObject_GET_WEAKREFS_LISTPTR(o: *mut PyObject) -> *mut *mut PyObject {
73 let weaklistoffset = (*Py_TYPE(o)).tp_weaklistoffset as isize;
74 (o as *mut c_char).offset(weaklistoffset) as *mut *mut PyObject
75}

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected