add option to allow writing the prefix as well

This commit is contained in:
Robert Schmidtke
2017-10-02 17:31:05 +02:00
parent f481bf3542
commit 081a8a1c24
3 changed files with 17 additions and 3 deletions

View File

@@ -376,6 +376,7 @@ struct IDLOptions {
std::string go_namespace;
bool reexport_ts_modules;
bool protobuf_ascii_alike;
bool prefix_size;
// Possible options for the more general generator below.
enum Language {
@@ -428,6 +429,7 @@ struct IDLOptions {
skip_flatbuffers_import(false),
reexport_ts_modules(true),
protobuf_ascii_alike(false),
prefix_size(false),
lang(IDLOptions::kJava),
mini_reflect(IDLOptions::kNone),
lang_to_generate(0) {}