(o: *mut PyObject)
| 87 | #[inline(always)] |
| 88 | #[cfg(all(not(Py_LIMITED_API), not(Py_3_9)))] |
| 89 | pub unsafe fn PyObject_IS_GC(o: *mut PyObject) -> c_int { |
| 90 | (PyType_IS_GC(Py_TYPE(o)) != 0 |
| 91 | && match (*Py_TYPE(o)).tp_is_gc { |
| 92 | Some(tp_is_gc) => tp_is_gc(o) != 0, |
| 93 | None => true, |
| 94 | }) as c_int |
| 95 | } |
| 96 | |
| 97 | #[cfg_attr(windows, link(name = "pythonXY"))] |
| 98 | extern "C" { |
nothing calls this directly
no test coverage detected