Skip to content

Commit

Permalink
Add a macro to create bitsets from enums
Browse files Browse the repository at this point in the history
Adds a RIVE_MAKE_ENUM_BITFIELD() macro and accompanying EnumBitset<> class that allow us to treat strongly typed C++ enums as bitsets, including with an implicit bool conversion for expressions like "if (flags & Flags::myFlag)".

Diffs=
654d4488e Add a macro to create bitsets from enums (#5922)
  • Loading branch information
csmartdalton committed Aug 31, 2023
1 parent aea5f87 commit 5a2b702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7bbf083ce32d92ba240dbf08b852d2702fac18ca
654d4488e936ac8c63930253b83229ef1c82618b
2 changes: 1 addition & 1 deletion submodules/rive-cpp

0 comments on commit 5a2b702

Please sign in to comment.