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

Function PyFunction_Check

python27-sys/src/funcobject.rs:11–14  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

9
10#[inline(always)]
11pub unsafe fn PyFunction_Check(op: *mut PyObject) -> c_int {
12 let u: *mut PyTypeObject = &mut PyFunction_Type;
13 (Py_TYPE(op) == u) as c_int
14}
15
16#[cfg_attr(windows, link(name = "pythonXY"))]
17extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected