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

Function PyBool_Check

python27-sys/src/boolobject.rs:17–20  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

15
16#[inline(always)]
17pub unsafe fn PyBool_Check(op: *mut PyObject) -> c_int {
18 let u: *mut PyTypeObject = &mut PyBool_Type;
19 (Py_TYPE(op) == u) as c_int
20}
21
22#[inline(always)]
23pub unsafe fn Py_False() -> *mut PyObject {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected