From 59e950f41b72bd8216df3c888438c3d059dca64b Mon Sep 17 00:00:00 2001 From: Chris Hamons Date: Fri, 16 Dec 2016 10:38:38 -0600 Subject: [PATCH] Update ApiDefinition.cs comment --- csharp/Facebook.Yoga/YogaNode.cs | 2 -- csharp/Facebook.Yoga/mac/ApiDefinition.cs | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/csharp/Facebook.Yoga/YogaNode.cs b/csharp/Facebook.Yoga/YogaNode.cs index 3bc0886a..9211b28e 100644 --- a/csharp/Facebook.Yoga/YogaNode.cs +++ b/csharp/Facebook.Yoga/YogaNode.cs @@ -541,7 +541,6 @@ namespace Facebook.Yoga return new YogaSize { width = MeasureOutput.GetWidth(output), height = MeasureOutput.GetHeight(output) }; } -#if !MONOMAC public string Print(YogaPrintOptions options = YogaPrintOptions.Layout|YogaPrintOptions.Style|YogaPrintOptions.Children) { @@ -552,7 +551,6 @@ namespace Facebook.Yoga YogaLogger.Logger = orig; return sb.ToString(); } -#endif public IEnumerator GetEnumerator() { diff --git a/csharp/Facebook.Yoga/mac/ApiDefinition.cs b/csharp/Facebook.Yoga/mac/ApiDefinition.cs index de52afd0..584caa75 100644 --- a/csharp/Facebook.Yoga/mac/ApiDefinition.cs +++ b/csharp/Facebook.Yoga/mac/ApiDefinition.cs @@ -7,7 +7,8 @@ using CoreGraphics; namespace Facebook.Yoga.Mac { - // We're actually abusing the Xamarin.Mac binding project - // to bundle in the static lib for us. There is no objective-c - // lib to bind, but the build will fail without ApiDefinition.cs + // Xamarin.Mac binding projects allow you to include native libraries inside C# DLLs for easy consumption + // later. However, the binding project build files currently assume you are binding some objective-c API + // and that you need an ApiDefinition.cs for that. yoga is all C APIs, so just include this "blank" file so + // the dylib gets packaged }