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

Function Py_IsFalse

python3-sys/src/boolobject.rs:30–32  ·  view source on GitHub ↗
(obj: *mut PyObject)

Source from the content-addressed store, hash-verified

28
29#[inline(always)]
30pub unsafe fn Py_IsFalse(obj: *mut PyObject) -> c_int {
31 (obj == Py_False()) as c_int
32}
33
34#[inline(always)]
35pub unsafe fn Py_IsTrue(obj: *mut PyObject) -> c_int {

Callers

nothing calls this directly

Calls 1

Py_FalseFunction · 0.70

Tested by

no test coverage detected