mess up the formatting
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
/* define fmaxf if < VC12 */
|
/* define fmaxf if < VC12 */
|
||||||
#if _MSC_VER < 1800
|
#if _MSC_VER < 1800
|
||||||
__forceinline const float fmaxf(const float a, const float b) {
|
__forceinline const float fmaxf(const float a, const float b) {
|
||||||
return (a > b) ? a : b;
|
return (a > b) ? a : b;
|
||||||
}
|
}
|
||||||
@@ -340,8 +340,8 @@ YOGA_EXPORT bool YGNodeIsReferenceBaseline(YGNodeRef node) {
|
|||||||
|
|
||||||
YOGA_EXPORT void YGNodeInsertChild(
|
YOGA_EXPORT void YGNodeInsertChild(
|
||||||
const YGNodeRef owner,
|
const YGNodeRef owner,
|
||||||
const YGNodeRef child,
|
const YGNodeRef child,
|
||||||
const uint32_t index) {
|
const uint32_t index) {
|
||||||
YGAssertWithNode(
|
YGAssertWithNode(
|
||||||
owner,
|
owner,
|
||||||
child->getOwner() == nullptr,
|
child->getOwner() == nullptr,
|
||||||
@@ -361,9 +361,14 @@ YOGA_EXPORT void YGNodeSwapChild(
|
|||||||
const YGNodeRef owner,
|
const YGNodeRef owner,
|
||||||
const YGNodeRef child,
|
const YGNodeRef child,
|
||||||
const uint32_t index) {
|
const uint32_t index) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
owner->replaceChild(child, index);
|
owner->replaceChild(child, index);
|
||||||
child->setOwner(owner);
|
child->setOwner(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
YOGA_EXPORT void YGNodeRemoveChild(
|
YOGA_EXPORT void YGNodeRemoveChild(
|
||||||
const YGNodeRef owner,
|
const YGNodeRef owner,
|
||||||
|
Reference in New Issue
Block a user