コード例 #1
0
ファイル: Context.cs プロジェクト: wyl2008056/Llvm.NET
        private Context(LLVMContextRef contextRef)
        {
            ContextHandle = contextRef;
            lock ( ContextCache )
            {
                ContextCache.Add(contextRef, this);
            }

            ActiveHandler = new WrappedNativeCallback(new LLVMDiagnosticHandler(DiagnosticHandler));
            NativeMethods.ContextSetDiagnosticHandler(ContextHandle, ActiveHandler.GetFuncPointer( ), IntPtr.Zero);
        }