(op: *mut PyObject)
| 802 | |
| 803 | #[inline(always)] |
| 804 | pub unsafe fn Py_DECREF(op: *mut PyObject) { |
| 805 | if cfg!(py_sys_config = "Py_REF_DEBUG") || cfg!(py_sys_config = "COUNT_ALLOCS") { |
| 806 | Py_DecRef(op) |
| 807 | } else { |
| 808 | (*op).ob_refcnt -= 1; |
| 809 | if (*op).ob_refcnt == 0 { |
| 810 | (*Py_TYPE(op)).tp_dealloc.unwrap()(op) |
| 811 | } |
| 812 | } |
| 813 | } |
| 814 | |
| 815 | #[inline(always)] |
| 816 | pub unsafe fn Py_CLEAR(op: &mut *mut PyObject) { |
no test coverage detected