mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 01:51:38 +00:00
Added a bit_flags attribute to enum declarations that 1<<N every value.
Change-Id: Ib9ec0cb3ddec60b1ca124eaf815fb1ae0cc53e1c Tested: on Windows and Linux Bug: 16186562
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace MyGame.Example;
|
||||
|
||||
enum Color:byte { Red = 0, Green, Blue = 2 }
|
||||
enum Color:byte (bit_flags) { Red = 0, Green, Blue = 3 }
|
||||
|
||||
union Any { Monster } // TODO: add more elements
|
||||
|
||||
|
||||
Reference in New Issue
Block a user