public static extern void ContextSetDiagnosticHandler(LLVMContextRef @C, LLVMDiagnosticHandler @Handler, IntPtr @DiagnosticContext);
public void SetDiagnosticHandler(LLVMDiagnosticHandler Handler, IntPtr DiagnosticContext) { var pHandler = Marshal.GetFunctionPointerForDelegate(Handler); LLVM.ContextSetDiagnosticHandler(this, pHandler, (void *)DiagnosticContext); }
public void SetDiagnosticHandler(Action <DiagnosticInfo, IntPtr> diagnosticHandler, IntPtr diagContext) { this._diagnosticHandler = new LLVMDiagnosticHandler((a, b) => diagnosticHandler(a.Wrap(), b)); LLVM.ContextSetDiagnosticHandler(this.Unwrap(), this._diagnosticHandler, diagContext); }