Skip to content

Commit fe6f70b

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Define Flag operators for YGPrintOptions (#37115)
Summary: Pull Request resolved: #37115 X-link: facebook/yoga#1267 This is an existing bitset enum in the API. Use the facility added in the last diff to add flag operators to it, to avoid the need for casting, and to make it clearer in the generated YGEnums.h that it is a bitset. Reviewed By: rshest Differential Revision: D45341504 fbshipit-source-id: 0b80588f3e2e167d4c1c722c6d6608408dd617ba
1 parent c7dcb42 commit fe6f70b

File tree

1 file changed

+1
-0
lines changed
  • packages/react-native/ReactCommon/yoga/yoga

1 file changed

+1
-0
lines changed

packages/react-native/ReactCommon/yoga/yoga/YGEnums.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ YG_ENUM_DECL(
127127
YGPrintOptionsLayout = 1,
128128
YGPrintOptionsStyle = 2,
129129
YGPrintOptionsChildren = 4)
130+
YG_DEFINE_ENUM_FLAG_OPERATORS(YGPrintOptions)
130131

131132
YG_ENUM_SEQ_DECL(
132133
YGUnit,

0 commit comments

Comments
 (0)