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

Function PyComplex_CheckExact

python27-sys/src/complexobject.rs:47–50  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

45
46#[inline(always)]
47pub unsafe fn PyComplex_CheckExact(op: *mut PyObject) -> c_int {
48 let u: *mut PyTypeObject = &mut PyComplex_Type;
49 (Py_TYPE(op) == u) as c_int
50}
51
52#[cfg_attr(windows, link(name = "pythonXY"))]
53extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected