public static extern void c4log_writeToCallback(C4LogLevel level, C4LogCallback callback, [MarshalAs(UnmanagedType.U1)] bool preformatted);
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);
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);