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

Function PyLong_CheckExact

python3-sys/src/longobject.rs:22–24  ·  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 (Py_TYPE(op) == &mut PyLong_Type) as c_int
24}
25
26#[cfg_attr(windows, link(name = "pythonXY"))]
27extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected