interrogate: Fix some badly formatted code

This commit is contained in:
rdb 2022-10-10 15:10:53 +02:00
parent e6036b5209
commit 834be5c7a0

View File

@ -595,22 +595,21 @@ main(int argc, char **argv) {
<< " *\n" << " *\n"
<< " */\n\n"; << " */\n\n";
if(the_output_include != nullptr) if (the_output_include != nullptr) {
{ output_code << "#include \"" << output_include_filename << "\"\n";
output_code << "#include \""<<output_include_filename<<"\"\n";
*the_output_include << "#include \"" << output_include_filename.get_fullpath_wo_extension() << "_pynative.h\"\n"; *the_output_include << "#include \"" << output_include_filename.get_fullpath_wo_extension() << "_pynative.h\"\n";
} }
if (output_code.fail()) { if (output_code.fail()) {
nout << "Unable to write to " << output_code_filename << "\n"; nout << "Unable to write to " << output_code_filename << "\n";
} else { } else {
builder.write_code(output_code,the_output_include, def); builder.write_code(output_code, the_output_include, def);
} }
} }
if (the_output_include != nullptr) {
if(the_output_include != nullptr)
*the_output_include << "#endif // #define " << output_include_filename.get_basename_wo_extension() << "__HH__\n"; *the_output_include << "#endif // #define " << output_include_filename.get_basename_wo_extension() << "__HH__\n";
}
// And now output the bulk of the database. // And now output the bulk of the database.
if (!output_data_filename.empty()) { if (!output_data_filename.empty()) {