Generated C++ headers now have include guards.

Bug: 15700355
Change-Id: Iceccb5b344e394e399092ffaa81f9cad2f0418ab
Tested: on Windows
This commit is contained in:
Wouter van Oortmerssen
2014-06-23 16:42:04 -07:00
parent d58da1db14
commit 59043114ac
3 changed files with 40 additions and 8 deletions

View File

@@ -302,7 +302,8 @@ extern void GenerateText(const Parser &parser,
// Generate a C++ header from the definitions in the Parser object.
// See idl_gen_cpp.
extern std::string GenerateCPP(const Parser &parser);
extern std::string GenerateCPP(const Parser &parser,
const std::string &include_guard_ident);
extern bool GenerateCPP(const Parser &parser,
const std::string &path,
const std::string &file_name);