Browse Source

interrogate: Fix some badly formatted code

rdb 3 years ago
parent
commit
834be5c7a0
1 changed files with 9 additions and 10 deletions
  1. 9 10
      dtool/src/interrogate/interrogate.cxx

+ 9 - 10
dtool/src/interrogate/interrogate.cxx

@@ -417,8 +417,8 @@ main(int argc, char **argv) {
       break;
       break;
 
 
     case CO_python_native:
     case CO_python_native:
-        build_python_native = true;
-        break;
+      build_python_native = true;
+      break;
 
 
     case CO_track_interpreter:
     case CO_track_interpreter:
       track_interpreter = true;
       track_interpreter = true;
@@ -595,22 +595,21 @@ main(int argc, char **argv) {
       << " *\n"
       << " *\n"
       << " */\n\n";
       << " */\n\n";
 
 
-    if(the_output_include != nullptr)
-    {
-        output_code << "#include \""<<output_include_filename<<"\"\n";
-        *the_output_include << "#include \"" << output_include_filename.get_fullpath_wo_extension() << "_pynative.h\"\n";
+    if (the_output_include != nullptr) {
+      output_code << "#include \"" << output_include_filename << "\"\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)
-      *the_output_include << "#endif  // #define   " << output_include_filename.get_basename_wo_extension() << "__HH__\n";
+  if (the_output_include != nullptr) {
+    *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()) {