예제 #1
0
 public static extern void ContextSetDiagnosticHandler(LLVMContextRef @C, LLVMDiagnosticHandler @Handler, IntPtr @DiagnosticContext);
예제 #2
0
        public void SetDiagnosticHandler(LLVMDiagnosticHandler Handler, IntPtr DiagnosticContext)
        {
            var pHandler = Marshal.GetFunctionPointerForDelegate(Handler);

            LLVM.ContextSetDiagnosticHandler(this, pHandler, (void *)DiagnosticContext);
        }
예제 #3
0
 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);
 }