(x: *mut PyObject)
| 45 | |
| 46 | #[inline] |
| 47 | pub unsafe fn PyExceptionClass_Name(x: *mut PyObject) -> *const c_char { |
| 48 | if PyClass_Check(x) != 0 { |
| 49 | PyString_AS_STRING((*(x as *mut PyClassObject)).cl_name) |
| 50 | } else { |
| 51 | (*(x as *mut PyTypeObject)).tp_name |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | #[inline] |
| 56 | pub unsafe fn PyExceptionInstance_Class(x: *mut PyObject) -> *mut PyObject { |
nothing calls this directly
no test coverage detected