From ff57f52b7229e70a7029c9c50b58a841768359a6 Mon Sep 17 00:00:00 2001 From: Raman Date: Mon, 4 Jul 2016 21:37:50 +0200 Subject: [PATCH] Update flatc.cpp --- src/flatc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/flatc.cpp b/src/flatc.cpp index c7ba29e..1b9559f 100644 --- a/src/flatc.cpp +++ b/src/flatc.cpp @@ -194,7 +194,9 @@ int main(int argc, const char *argv[]) { binary_files_from = filenames.size(); } else if(arg == "--proto") { opts.proto_mode = true; - } else if(arg == "--schema") { + } else if (arg == "--escape-proto-identifiers") { + opts.escape_proto_identifiers = true; + } else if (arg == "--schema") { schema_binary = true; } else if(arg == "-M") { print_make_rules = true; @@ -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. -- 2.7.4