diff options
author | Derek Bailey <derekbailey@google.com> | 2021-11-10 22:26:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 22:26:09 -0800 |
commit | 6c8c291559053f90a35c138499053449a40e3b9a (patch) | |
tree | 3f039345a77fa4e6252bd79bef7a5b09aa8b927d /src/idl_parser.cpp | |
parent | fd4ff23da05b282d12a485b203f8176c9f4ffdf0 (diff) | |
download | flatbuffers-6c8c291559053f90a35c138499053449a40e3b9a.tar.gz flatbuffers-6c8c291559053f90a35c138499053449a40e3b9a.tar.bz2 flatbuffers-6c8c291559053f90a35c138499053449a40e3b9a.zip |
[C++] Split flatbuffers.h into separate files (#6868)
* split flatbuffers.h into separate files
* wrong variable in cmakelists for android
* readded two accidentally deleted includes
* created buffer.h and moved buffer related things over
Diffstat (limited to 'src/idl_parser.cpp')
-rw-r--r-- | src/idl_parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index f100a6a9..328d8dcb 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -20,6 +20,7 @@ #include <string> #include <utility> +#include "flatbuffers/base.h" #include "flatbuffers/idl.h" #include "flatbuffers/util.h" @@ -3404,9 +3405,9 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths, NEXT(); file_identifier_ = attribute_; EXPECT(kTokenStringConstant); - if (file_identifier_.length() != FlatBufferBuilder::kFileIdentifierLength) + if (file_identifier_.length() != flatbuffers::kFileIdentifierLength) return Error("file_identifier must be exactly " + - NumToString(FlatBufferBuilder::kFileIdentifierLength) + + NumToString(flatbuffers::kFileIdentifierLength) + " characters"); EXPECT(';'); } else if (IsIdent("file_extension")) { |