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

Function PyWeakref_CheckProxy

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

Source from the content-addressed store, hash-verified

38
39#[inline(always)]
40pub unsafe fn PyWeakref_CheckProxy(op: *mut PyObject) -> c_int {
41 ((Py_TYPE(op) == &mut _PyWeakref_ProxyType)
42 || (Py_TYPE(op) == &mut _PyWeakref_CallableProxyType)) as c_int
43}
44
45#[inline(always)]
46pub unsafe fn PyWeakref_Check(op: *mut PyObject) -> c_int {

Callers 1

PyWeakref_CheckFunction · 0.70

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected