(x: *mut PyObject)
| 54 | |
| 55 | #[inline] |
| 56 | pub unsafe fn PyExceptionInstance_Class(x: *mut PyObject) -> *mut PyObject { |
| 57 | if PyInstance_Check(x) != 0 { |
| 58 | (*(x as *mut PyInstanceObject)).in_class as *mut PyObject |
| 59 | } else { |
| 60 | (*x).ob_type as *mut PyObject |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | #[cfg_attr(windows, link(name = "pythonXY"))] |
| 65 | extern "C" { |
nothing calls this directly
no test coverage detected