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

Function PyInt_CheckExact

python27-sys/src/intobject.rs:29–32  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

27
28#[inline(always)]
29pub unsafe fn PyInt_CheckExact(op: *mut PyObject) -> c_int {
30 let u: *mut PyTypeObject = &mut PyInt_Type;
31 (Py_TYPE(op) == u) as c_int
32}
33
34#[cfg_attr(windows, link(name = "pythonXY"))]
35extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected