Update flatc.cpp

This commit is contained in:
Raman 2016-07-04 21:37:50 +02:00 committed by GitHub
parent 7d84a4914f
commit ff57f52b72
1 changed files with 4 additions and 2 deletions

View File

@ -194,6 +194,8 @@ int main(int argc, const char *argv[]) {
binary_files_from = filenames.size();
} else if(arg == "--proto") {
opts.proto_mode = true;
} else if (arg == "--escape-proto-identifiers") {
opts.escape_proto_identifiers = true;
} else if (arg == "--schema") {
schema_binary = true;
} else if(arg == "-M") {
@ -314,7 +316,7 @@ int main(int argc, const char *argv[]) {
}
}
if (opts.proto_mode) GenerateFBS(*parser, output_path, filebase);
if (opts.proto_mode) GenerateFBS(*parser, output_path, filebase, opts.escape_proto_identifiers)
// We do not want to generate code for the definitions in this file
// in any files coming up next.