Function mlir_sys::mlirContextAttachDiagnosticHandler
source · pub unsafe extern "C" fn mlirContextAttachDiagnosticHandler(
context: MlirContext,
handler: MlirDiagnosticHandler,
userData: *mut c_void,
deleteUserData: Option<unsafe extern "C" fn(arg1: *mut c_void)>
) -> MlirDiagnosticHandlerID
Expand description
Attaches the diagnostic handler to the context. Handlers are invoked in the
reverse order of attachment until one of them processes the diagnostic
completely. When a handler is invoked it is passed the userData
that was
provided when it was attached. If non-NULL, deleteUserData
is called once
the system no longer needs to call the handler (for instance after the
handler is detached or the context is destroyed). Returns an identifier that
can be used to detach the handler.