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

Function PyCFunction_Check

python3-sys/src/methodobject.rs:12–14  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

10
11#[inline(always)]
12pub unsafe fn PyCFunction_Check(op: *mut PyObject) -> c_int {
13 (Py_TYPE(op) == &mut PyCFunction_Type) as c_int
14}
15
16pub type PyCFunction =
17 unsafe extern "C" fn(slf: *mut PyObject, args: *mut PyObject) -> *mut PyObject;

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected