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

Function PyWeakref_CheckRefExact

python3-sys/src/weakrefobject.rs:23–25  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

21
22#[inline(always)]
23pub unsafe fn PyWeakref_CheckRefExact(op: *mut PyObject) -> c_int {
24 (Py_TYPE(op) == &mut _PyWeakref_RefType) as c_int
25}
26
27#[inline(always)]
28pub unsafe fn PyWeakref_CheckProxy(op: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected