make sure YGPointValue works in Obj-C++
Summary: This is an easy diff to wrap YGPointValue() in an extern "C" block to make sure it compiles when we are using inside of Objective-C++ classes. Reviewed By: emilsjolander Differential Revision: D5242366 fbshipit-source-id: 772aaac056b3a20041926d5f35128716848a271a
This commit is contained in:
committed by
Facebook Github Bot
parent
ca2c607f90
commit
4804bcd594
@@ -10,12 +10,17 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <yoga/YGEnums.h>
|
||||
#import <yoga/Yoga.h>
|
||||
#import <yoga/YGMacros.h>
|
||||
|
||||
YG_EXTERN_C_BEGIN
|
||||
|
||||
extern YGValue YGPointValue(CGFloat value)
|
||||
NS_SWIFT_UNAVAILABLE("Use the swift Int and FloatingPoint extensions instead");
|
||||
extern YGValue YGPercentValue(CGFloat value)
|
||||
NS_SWIFT_UNAVAILABLE("Use the swift Int and FloatingPoint extensions instead");
|
||||
|
||||
YG_EXTERN_C_END
|
||||
|
||||
typedef NS_OPTIONS(NSInteger, YGDimensionFlexibility) {
|
||||
YGDimensionFlexibilityFlexibleWidth = 1 << 0,
|
||||
YGDimensionFlexibilityFlexibleHeigth = 1 << 1,
|
||||
|
Reference in New Issue
Block a user