From aae48e3a9d09695b906da0113c410030dd26989b Mon Sep 17 00:00:00 2001 From: Raman Date: Mon, 4 Jul 2016 21:41:01 +0200 Subject: [PATCH] Update idl.h --- include/flatbuffers/idl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h index b22bc08a1..d5dee17af 100644 --- a/include/flatbuffers/idl.h +++ b/include/flatbuffers/idl.h @@ -337,7 +337,8 @@ struct IDLOptions { bool generate_all; bool skip_unexpected_fields_in_json; bool generate_name_strings; - + bool escape_proto_identifiers; + // Possible options for the more general generator below. enum Language { kJava, kCSharp, kGo, kMAX }; @@ -356,6 +357,7 @@ struct IDLOptions { generate_all(false), skip_unexpected_fields_in_json(false), generate_name_strings(false), + escape_proto_identifiers(false), lang(IDLOptions::kJava) {} }; @@ -644,10 +646,12 @@ extern bool GenerateGeneral(const Parser &parser, // Generate a schema file from the internal representation, useful after // parsing a .proto schema. extern std::string GenerateFBS(const Parser &parser, - const std::string &file_name); + const std::string &file_name, + const bool &escape_proto_identifiers); extern bool GenerateFBS(const Parser &parser, const std::string &path, - const std::string &file_name); + const std::string &file_name, + const bool &escape_proto_identifiers); // Generate a make rule for the generated JavaScript code. // See idl_gen_js.cpp.