Add YGConfigCopy
Summary: Closes https://github.com/facebook/yoga/pull/525 Differential Revision: D4953723 Pulled By: emilsjolander fbshipit-source-id: 1c54f40dfae5054822a440edf9d0aafb22a465d9
This commit is contained in:
parent
c660d0c836
commit
f71e3b80b9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue