Switch to dylib and remove icon files

This commit is contained in:
Chris Hamons
2016-12-16 10:34:02 -06:00
parent 5f25de49b9
commit 01f5640ce0
18 changed files with 10 additions and 107 deletions

View File

@@ -14,23 +14,18 @@ namespace Facebook.Yoga
{
internal static class YogaLogger
{
#if !MONOMAC
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void Func(YogaLogLevel level, string message);
#endif
private static bool _initialized;
#if !MONOMAC
private static Func _managedLogger = null;
public static Func Logger = null;
#endif
public static void Initialize()
{
if (!_initialized)
{
#if !MONOMAC
_managedLogger = (level, message) => {
if (Logger != null)
{
@@ -43,7 +38,6 @@ namespace Facebook.Yoga
}
};
Native.YGInteropSetLogger(_managedLogger);
#endif
_initialized = true;
}
}