Add basic Xamarin.iOS support
This commit is contained in:
@@ -14,22 +14,22 @@ namespace Facebook.Yoga
|
||||
{
|
||||
internal static class Native
|
||||
{
|
||||
#if UNITY_IOS && !UNITY_EDITOR
|
||||
#if UNITY_IOS && !UNITY_EDITOR || __IOS__
|
||||
private const string DllName = "__Internal";
|
||||
#else
|
||||
private const string DllName = "yoga";
|
||||
#endif
|
||||
|
||||
#if !__IOS__
|
||||
[DllImport(DllName)]
|
||||
public static extern void YGInteropSetLogger(
|
||||
[MarshalAs(UnmanagedType.FunctionPtr)] YogaLogger.Func func);
|
||||
|
||||
#endif
|
||||
[DllImport(DllName)]
|
||||
public static extern IntPtr YGNodeNew();
|
||||
|
||||
#if !__IOS__
|
||||
[DllImport(DllName)]
|
||||
public static extern void YGNodeInit(IntPtr node);
|
||||
|
||||
#endif
|
||||
[DllImport(DllName)]
|
||||
public static extern void YGNodeFree(IntPtr node);
|
||||
|
||||
|
Reference in New Issue
Block a user