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

Function PyCFunction_Check

python27-sys/src/methodobject.rs:12–15  ·  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 let u: *mut PyTypeObject = &mut PyCFunction_Type;
14 (Py_TYPE(op) == u) as c_int
15}
16
17pub type PyCFunction =
18 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