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

Function PyModule_CheckExact

python3-sys/src/moduleobject.rs:18–20  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

16
17#[inline(always)]
18pub unsafe fn PyModule_CheckExact(op: *mut PyObject) -> c_int {
19 (Py_TYPE(op) == &mut PyModule_Type) as c_int
20}
21
22#[cfg_attr(windows, link(name = "pythonXY"))]
23extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected