diff options
author | Wouter van Oortmerssen <wvo@google.com> | 2014-11-17 17:27:26 -0800 |
---|---|---|
committer | Wouter van Oortmerssen <wvo@google.com> | 2014-11-19 11:06:17 -0800 |
commit | 0952143971bdbb5ef20dae8a865e811a0e31b4b3 (patch) | |
tree | e5886d0e82dacb16685721d8c36c4ce1969fce78 /tests/monster_test.fbs | |
parent | 0ce53c96c30fe5438edf50251ca60b7655db1f2a (diff) | |
download | flatbuffers-0952143971bdbb5ef20dae8a865e811a0e31b4b3.tar.gz flatbuffers-0952143971bdbb5ef20dae8a865e811a0e31b4b3.tar.bz2 flatbuffers-0952143971bdbb5ef20dae8a865e811a0e31b4b3.zip |
Added user defined attribute declarations.
This is such that if you mis-spell an attribute, it doesn't get
silently ignored.
Bug: 18294628
Change-Id: I10013f5b2a21048b7daba2e9410678f528e09761
Tested: on Linux.
Diffstat (limited to 'tests/monster_test.fbs')
-rwxr-xr-x | tests/monster_test.fbs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/monster_test.fbs b/tests/monster_test.fbs index 12749cbd..0ffd3dc1 100755 --- a/tests/monster_test.fbs +++ b/tests/monster_test.fbs @@ -4,6 +4,8 @@ include "include_test1.fbs"; namespace MyGame.Example; +attribute "priority"; + enum Color:byte (bit_flags) { Red = 0, Green, Blue = 3, } union Any { Monster } // TODO: add more elements |