Permalink
Browse files

Add YGConfigCopy

Summary: Closes facebook/yoga#525

Differential Revision: D4953723

Pulled By: emilsjolander

fbshipit-source-id: 1c54f40dfae5054822a440edf9d0aafb22a465d9
  • Loading branch information...
zcbenz authored and facebook-github-bot committed Apr 26, 2017
1 parent c660d0c commit f71e3b80b9814447d3d9a3f1be36ecdc88c9967f
Showing with 5 additions and 0 deletions.
  1. +4 −0 ReactCommon/yoga/yoga/Yoga.c
  2. +1 −0 ReactCommon/yoga/yoga/Yoga.h
@@ -391,6 +391,10 @@ void YGConfigFree(const YGConfigRef config) {
gConfigInstanceCount--;
}
void YGConfigCopy(const YGConfigRef dest, const YGConfigRef src) {
memcpy(dest, src, sizeof(YGConfig));
}
static void YGNodeMarkDirtyInternal(const YGNodeRef node) {
if (!node->isDirty) {
node->isDirty = true;
@@ -228,6 +228,7 @@ WIN_EXPORT void YGConfigSetPointScaleFactor(const YGConfigRef config, const floa
// YGConfig
WIN_EXPORT YGConfigRef YGConfigNew(void);
WIN_EXPORT void YGConfigFree(const YGConfigRef config);
WIN_EXPORT void YGConfigCopy(const YGConfigRef dest, const YGConfigRef src);
WIN_EXPORT int32_t YGConfigGetInstanceCount(void);
WIN_EXPORT void YGConfigSetExperimentalFeatureEnabled(const YGConfigRef config,

0 comments on commit f71e3b8

Please sign in to comment.