예제 #1
0
 public static extern void c4log_writeToCallback(C4LogLevel level, C4LogCallback callback, [MarshalAs(UnmanagedType.U1)] bool preformatted);
예제 #2
0
파일: Native.cs 프로젝트: buzzfeed/cbforest
        public static void c4log_register(C4LogLevel level, Action<C4LogLevel, string> callback)
        {
            _LogCallback = callback;

            // This is needed to ensure that the delegate object itself doesn't get garbage collected
            _NativeLogCallback = _LogCallback == null ? null : new C4LogCallback(c4log_wedge);
            c4log_register(level, _NativeLogCallback);
        }
 public static extern void c4log_register(C4LogLevel level, C4LogCallback callback);
예제 #4
0
파일: Native.cs 프로젝트: buzzfeed/cbforest
 private static extern void c4log_register(C4LogLevel level, C4LogCallback callback);
 public void c4log_writeToCallback(C4LogLevel level, C4LogCallback callback, bool preformatted) => Native.c4log_writeToCallback(level, callback, preformatted);