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

Function PyFrozenSet_Check

python27-sys/src/setobject.rs:43–46  ·  view source on GitHub ↗
(ob: *mut PyObject)

Source from the content-addressed store, hash-verified

41
42#[inline]
43pub unsafe fn PyFrozenSet_Check(ob: *mut PyObject) -> c_int {
44 let f: *mut PyTypeObject = &mut PyFrozenSet_Type;
45 (Py_TYPE(ob) == f || PyType_IsSubtype(Py_TYPE(ob), f) != 0) as c_int
46}
47
48#[cfg_attr(windows, link(name = "pythonXY"))]
49extern "C" {

Callers

nothing calls this directly

Calls 1

Py_TYPEFunction · 0.70

Tested by

no test coverage detected