(func: *mut PyObject)
| 57 | #[cfg(not(GraalPy))] |
| 58 | #[inline] |
| 59 | pub unsafe fn PyCFunction_GET_CLASS(func: *mut PyObject) -> *mut PyTypeObject { |
| 60 | debug_assert_eq!(PyCMethod_Check(func), 1); |
| 61 | |
| 62 | let func = func.cast::<PyCFunctionObject>(); |
| 63 | if (*(*func).m_ml).ml_flags & METH_METHOD != 0 { |
| 64 | let func = func.cast::<PyCMethodObject>(); |
| 65 | (*func).mm_class |
| 66 | } else { |
| 67 | core::ptr::null_mut() |
| 68 | } |
| 69 | } |
nothing calls this directly
no outgoing calls
no test coverage detected