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

Function PyCode_Check

python27-sys/src/code.rs:99–101  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

97
98#[inline(always)]
99pub unsafe fn PyCode_Check(op: *mut PyObject) -> c_int {
100 (Py_TYPE(op) == &mut PyCode_Type) as c_int
101}
102
103#[inline]
104pub unsafe fn PyCode_GetNumFree(op: *mut PyCodeObject) -> Py_ssize_t {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected