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

Function PyObject_GET_WEAKREFS_LISTPTR

python3-sys/src/objimpl.rs:129–132  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

127#[inline(always)]
128#[cfg(all(not(Py_LIMITED_API), not(Py_3_9)))]
129pub unsafe fn PyObject_GET_WEAKREFS_LISTPTR(o: *mut PyObject) -> *mut *mut PyObject {
130 let weaklistoffset = (*Py_TYPE(o)).tp_weaklistoffset as isize;
131 (o as *mut u8).offset(weaklistoffset) as *mut *mut PyObject
132}
133
134#[cfg_attr(windows, link(name = "pythonXY"))]
135extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected