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

Function PyWeakref_Check

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

Source from the content-addressed store, hash-verified

44
45#[inline(always)]
46pub unsafe fn PyWeakref_Check(op: *mut PyObject) -> c_int {
47 (PyWeakref_CheckRef(op) != 0 || PyWeakref_CheckProxy(op) != 0) as c_int
48}
49
50#[cfg_attr(windows, link(name = "pythonXY"))]
51extern "C" {

Callers

nothing calls this directly

Calls 2

PyWeakref_CheckRefFunction · 0.70
PyWeakref_CheckProxyFunction · 0.70

Tested by

no test coverage detected