working towards applying suggestions

This commit is contained in:
David Hart
2017-01-13 17:38:18 +01:00
parent 2e99a5b475
commit bb19861db5
3 changed files with 142 additions and 99 deletions

View File

@@ -49,12 +49,13 @@
#define YG_STYLE_EDGE_PROPERTY_UNIT_IMPL(objc_lowercased_name, objc_capitalized_name, c_name, edge) \
- (CGFloat)objc_lowercased_name \
{ \
YGValue value = YGNodeStyleGet##c_name(self.node, edge); \
if (value.unit == YGUnitPixel) { \
return value.value; \
} else { \
return YGUndefined; \
if (edge <= YGEdgeEnd) { \
YGValue value = YGNodeStyleGet##c_name(self.node, edge); \
if (value.unit == YGUnitPixel) { \
return value.value; \
} \
} \
return YGUndefined; \
} \
\
- (void)set##objc_capitalized_name:(CGFloat)objc_lowercased_name \