MCPcopy Create free account
hub / github.com/PyO3/pyo3 / PyCFunction_Check

Function PyCFunction_Check

pyo3-ffi/src/methodobject.rs:39–41  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

37#[cfg(not(RustPython))]
38#[inline]
39pub unsafe fn PyCFunction_Check(op: *mut PyObject) -> c_int {
40 PyObject_TypeCheck(op, &raw mut PyCFunction_Type)
41}
42
43pub type PyCFunction =
44 unsafe extern "C" fn(slf: *mut PyObject, args: *mut PyObject) -> *mut PyObject;

Callers

nothing calls this directly

Calls 1

PyObject_TypeCheckFunction · 0.85

Tested by

no test coverage detected