mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-17 12:05:19 +00:00
Updated SupportsAdvancedUnionFeatures to look out for string (#6190)
Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
@@ -438,6 +438,10 @@ struct EnumDef : public Definition {
|
||||
SymbolTable<EnumVal> vals;
|
||||
};
|
||||
|
||||
inline bool IsString(const Type &type) {
|
||||
return type.base_type == BASE_TYPE_STRING;
|
||||
}
|
||||
|
||||
inline bool IsStruct(const Type &type) {
|
||||
return type.base_type == BASE_TYPE_STRUCT && type.struct_def->fixed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user