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

Function PyInt_Check

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

Source from the content-addressed store, hash-verified

22
23#[inline(always)]
24pub unsafe fn PyInt_Check(op: *mut PyObject) -> c_int {
25 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_INT_SUBCLASS)
26}
27
28#[inline(always)]
29pub unsafe fn PyInt_CheckExact(op: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 2

PyType_FastSubclassFunction · 0.70
Py_TYPEFunction · 0.70

Tested by

no test coverage detected