Merge pull request #3929 from Lakedaemon/fixForMake

same fix for general code generator
This commit is contained in:
Wouter van Oortmerssen 2016-07-08 14:24:08 -07:00 committed by GitHub
commit 193a631708
1 changed files with 4 additions and 3 deletions

View File

@ -193,7 +193,8 @@ class GeneralGenerator : public BaseGenerator {
public:
GeneralGenerator(const Parser &parser, const std::string &path,
const std::string &file_name)
: BaseGenerator(parser, path, file_name, "", "."){
: BaseGenerator(parser, path, file_name, "", "."),
lang_(language_parameters[parser_.opts.lang]) {
assert(parser_.opts.lang <= IDLOptions::kMAX);
};
bool generate() {
@ -1127,7 +1128,7 @@ void GenStruct(StructDef &struct_def, std::string *code_ptr) {
}
code += "};\n\n";
}
const LanguageParameters & lang_ = language_parameters[parser_.opts.lang];
const LanguageParameters & lang_;
};
} // namespace general