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

Function PyWeakref_CheckProxy

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

Source from the content-addressed store, hash-verified

26
27#[inline(always)]
28pub unsafe fn PyWeakref_CheckProxy(op: *mut PyObject) -> c_int {
29 ((Py_TYPE(op) == &mut _PyWeakref_ProxyType)
30 || (Py_TYPE(op) == &mut _PyWeakref_CallableProxyType)) as c_int
31}
32
33#[inline(always)]
34pub 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