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

Function PyLong_CheckExact

python27-sys/src/longobject.rs:22–25  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

20
21#[inline(always)]
22pub unsafe fn PyLong_CheckExact(op: *mut PyObject) -> c_int {
23 let u: *mut PyTypeObject = &mut PyLong_Type;
24 (Py_TYPE(op) == u) as c_int
25}
26
27#[cfg_attr(windows, link(name = "pythonXY"))]
28extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected