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

Function PyCapsule_CheckExact

python3-sys/src/pycapsule.rs:13–15  ·  view source on GitHub ↗
(ob: *mut PyObject)

Source from the content-addressed store, hash-verified

11
12#[inline]
13pub unsafe fn PyCapsule_CheckExact(ob: *mut PyObject) -> c_int {
14 (Py_TYPE(ob) == &mut PyCapsule_Type) as c_int
15}
16
17#[cfg_attr(windows, link(name = "pythonXY"))]
18extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected