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

Function PyModule_CheckExact

python27-sys/src/moduleobject.rs:24–27  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

22
23#[inline(always)]
24pub unsafe fn PyModule_CheckExact(op: *mut PyObject) -> c_int {
25 let u: *mut PyTypeObject = &mut PyModule_Type;
26 (Py_TYPE(op) == u) as c_int
27}

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected