aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorWouter van Oortmerssen <wvo@google.com>2014-08-19 14:20:05 -0700
committerWouter van Oortmerssen <wvo@google.com>2014-08-19 16:44:14 -0700
commitbe894f09df2383844d6c19b1d173fec105451e0f (patch)
treec182480f0ab1b70d4a1b32ad08d156bfaaeb21f6 /samples
parent293a8110c409b460861b2e5fae4fd1ccb7d6319d (diff)
downloadflatbuffers-be894f09df2383844d6c19b1d173fec105451e0f.tar.gz
Schemas now support include files.
Bug: 15521443 Change-Id: I2e1ef97e7225a1a0ecf2ca65e31d49d443003747 Tested: on Linux.
Diffstat (limited to 'samples')
-rwxr-xr-xsamples/sample_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/sample_text.cpp b/samples/sample_text.cpp
index b1b7527c..33cb58e1 100755
--- a/samples/sample_text.cpp
+++ b/samples/sample_text.cpp
@@ -37,8 +37,8 @@ int main(int /*argc*/, const char * /*argv*/[]) {
// parse schema first, so we can use it to parse the data after
flatbuffers::Parser parser;
- ok = parser.Parse(schemafile.c_str()) &&
- parser.Parse(jsonfile.c_str());
+ ok = parser.Parse(schemafile.c_str(), "samples/") &&
+ parser.Parse(jsonfile.c_str(), "samples/");
assert(ok);
// here, parser.builder_ contains a binary buffer that is the parsed data.