Example #1
0
        private static void SetupDebugLogCallback()
        {
            LogCallbackDelegate callbackDelegate = new LogCallbackDelegate(LogCallback);

            System.IntPtr func = Marshal.GetFunctionPointerForDelegate(callbackDelegate);
            NativePlugin.SetLogFunction(func);
        }
Example #2
0
            internal Logger()
            {
                IntPtr func = Marshal.GetFunctionPointerForDelegate(_callbackDelegate);

                NativePlugin.SetLogFunction(func);
            }