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

Function PyWeakref_CheckRefExact

python27-sys/src/weakrefobject.rs:35–37  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

33
34#[inline(always)]
35pub unsafe fn PyWeakref_CheckRefExact(op: *mut PyObject) -> c_int {
36 (Py_TYPE(op) == &mut _PyWeakref_RefType) as c_int
37}
38
39#[inline(always)]
40pub 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