private static void SetLogFunction(NativeLogFunction fn) { int rc = NativeInitLogFunction(fn); if (rc != 0) { throw new Exception("Cannot initialize log function"); } }
private static extern int NativeInitLogFunction(NativeLogFunction fn);