Back out Stack D13119110..D13236159
Summary: backout, causes failures Reviewed By: adityasharat Differential Revision: D13376210 fbshipit-source-id: 1fa8823f2dce601c47738f34ddb2674288197e79
This commit is contained in:
committed by
Facebook Github Bot
parent
6b7f6980f9
commit
b26e637c81
29
yoga/Yoga.h
29
yoga/Yoga.h
@@ -17,9 +17,17 @@
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
/** Large positive number signifies that the property(float) is undefined.
|
||||
*Earlier we used to have YGundefined as NAN, but the downside of this is that
|
||||
*we can't use -ffast-math compiler flag as it assumes all floating-point
|
||||
*calculation involve and result into finite numbers. For more information
|
||||
*regarding -ffast-math compiler flag in clang, have a look at
|
||||
*https://clang.llvm.org/docs/UsersManual.html#cmdoption-ffast-math
|
||||
**/
|
||||
#define YGUndefined 10E20F
|
||||
|
||||
#include "YGEnums.h"
|
||||
#include "YGMacros.h"
|
||||
#include "YGValue.h"
|
||||
|
||||
YG_EXTERN_C_BEGIN
|
||||
|
||||
@@ -28,6 +36,25 @@ typedef struct YGSize {
|
||||
float height;
|
||||
} YGSize;
|
||||
|
||||
typedef struct YGValue {
|
||||
float value;
|
||||
YGUnit unit;
|
||||
} YGValue;
|
||||
|
||||
extern const YGValue YGValueUndefined;
|
||||
extern const YGValue YGValueAuto;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
YG_EXTERN_C_END
|
||||
|
||||
extern bool operator==(const YGValue& lhs, const YGValue& rhs);
|
||||
extern bool operator!=(const YGValue& lhs, const YGValue& rhs);
|
||||
|
||||
YG_EXTERN_C_BEGIN
|
||||
|
||||
#endif
|
||||
|
||||
typedef struct YGConfig* YGConfigRef;
|
||||
|
||||
typedef struct YGNode* YGNodeRef;
|
||||
|
Reference in New Issue
Block a user