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

Function PyWeakref_Check

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

Source from the content-addressed store, hash-verified

32
33#[inline(always)]
34pub unsafe fn PyWeakref_Check(op: *mut PyObject) -> c_int {
35 (PyWeakref_CheckRef(op) != 0 || PyWeakref_CheckProxy(op) != 0) as c_int
36}
37
38#[cfg_attr(windows, link(name = "pythonXY"))]
39extern "C" {

Callers

nothing calls this directly

Calls 2

PyWeakref_CheckRefFunction · 0.70
PyWeakref_CheckProxyFunction · 0.70

Tested by

no test coverage detected