diff options
author | Laurentiu Cristofor <laurentiu.cristofor@outlook.com> | 2020-06-02 09:50:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 09:50:56 -0700 |
commit | d026e6f071b3664e278c7373a69fa68d6c4e1183 (patch) | |
tree | 3e12dfdef812fb9fbf020128a400e9ee89e0562d /reflection/reflection.fbs | |
parent | 988164f6e1675bbea9c852e2d6001baf4d1fcf59 (diff) | |
download | flatbuffers-d026e6f071b3664e278c7373a69fa68d6c4e1183.tar.gz flatbuffers-d026e6f071b3664e278c7373a69fa68d6c4e1183.tar.bz2 flatbuffers-d026e6f071b3664e278c7373a69fa68d6c4e1183.zip |
Add static asserts to ensure that reflection API arrays are kept in sync (#5934)
* Add static asserts to ensure that reflection API arrays are kept in sync
* Move changes from generated file into source fbs file
* Rename enum value and regenerate reflection_generated.h
* Add comments to each entries of type sizes array
Diffstat (limited to 'reflection/reflection.fbs')
-rw-r--r-- | reflection/reflection.fbs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/reflection/reflection.fbs b/reflection/reflection.fbs index 8fed025f..3c8fa4b2 100644 --- a/reflection/reflection.fbs +++ b/reflection/reflection.fbs @@ -24,12 +24,15 @@ enum BaseType : byte { Vector, Obj, // Used for tables & structs. Union, - Array + Array, + + // Add any new type above this value. + MaxBaseType } table Type { base_type:BaseType; - element:BaseType = None; // Only if base_type == Vector + element:BaseType = None; // Only if base_type == Vector // or base_type == Array. index:int = -1; // If base_type == Object, index into "objects" below. // If base_type == Union, UnionType, or integral derived |