Added option to flatc to generate dependent header statements.

Bug: 17322776
Change-Id: I3a4d3cb4ccd40bc3200a87653aa0ab8ecb90ce60
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen
2014-09-22 15:49:43 -07:00
parent 517c964fe2
commit 30642c5a6f
6 changed files with 36 additions and 6 deletions

View File

@@ -866,7 +866,9 @@ void Parser::MarkGenerated() {
}
}
bool Parser::Parse(const char *source, const char **include_paths) {
bool Parser::Parse(const char *source, const char **include_paths,
const char *source_filename) {
if (source_filename) included_files_[source_filename] = true;
source_ = cursor_ = source;
line_ = 1;
error_.clear();