diff options
author | Wouter van Oortmerssen <wvo@google.com> | 2015-11-30 17:42:19 -0800 |
---|---|---|
committer | Wouter van Oortmerssen <wvo@google.com> | 2015-12-04 09:44:31 -0800 |
commit | 45bda6e08de1436e8a25e791b776e0bcc38f232b (patch) | |
tree | ee35f22852b8b1338827ace816dc9284e9654750 /samples | |
parent | 47478117d8df4ea4a4b052dd15e07712913486c7 (diff) | |
download | flatbuffers-45bda6e08de1436e8a25e791b776e0bcc38f232b.tar.gz |
Added --gen-all to generate code for a schema and all its includes.
Also refactored the way options are stored.
Change-Id: I709ac908cd2aba396c9c282725cf1d42ccce0882
Tested: on Linux.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/sample_text.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/sample_text.cpp b/samples/sample_text.cpp index 88d761cb..e1a3bf7e 100644 --- a/samples/sample_text.cpp +++ b/samples/sample_text.cpp @@ -47,8 +47,7 @@ int main(int /*argc*/, const char * /*argv*/[]) { // to ensure it is correct, we now generate text back from the binary, // and compare the two: std::string jsongen; - GenerateText(parser, parser.builder_.GetBufferPointer(), - flatbuffers::GeneratorOptions(), &jsongen); + GenerateText(parser, parser.builder_.GetBufferPointer(), &jsongen); if (jsongen != jsonfile) { printf("%s----------------\n%s", jsongen.c_str(), jsonfile.c_str()); |