C++ style enums 6/N: PrintOptions (#1385)

Summary:
X-link: https://github.com/facebook/react-native/pull/39449

Pull Request resolved: https://github.com/facebook/yoga/pull/1385

This converts usages of YGPrintOptions to PrintOptions

Reviewed By: rozele

Differential Revision: D49270929

fbshipit-source-id: ad98dd25865138808d25b48eff22fbe81ccdd352
This commit is contained in:
Nick Gerleman
2023-09-14 23:06:34 -07:00
committed by Facebook GitHub Bot
parent 70954bbda5
commit 383b325d06
4 changed files with 21 additions and 13 deletions

View File

@@ -24,6 +24,7 @@
#include <yoga/algorithm/ResolveValue.h>
#include <yoga/debug/AssertFatal.h>
#include <yoga/debug/Log.h>
#include <yoga/debug/NodeToString.h>
#include <yoga/event/event.h>
#include <yoga/node/Node.h>
#include <yoga/numeric/Comparison.h>
@@ -2737,9 +2738,9 @@ void calculateLayout(
#ifdef DEBUG
if (node->getConfig()->shouldPrintTree()) {
YGNodePrint(
yoga::print(
node,
(YGPrintOptions)(YGPrintOptionsLayout | YGPrintOptionsChildren | YGPrintOptionsStyle));
PrintOptions::Layout | PrintOptions::Children | PrintOptions::Style);
}
#endif
}