Implemented most build settings as constexpr functions and ported most of macro-based conditional compilation to if constexpr(); this significantly improves code quality and the chance of build success on different platforms and build configurations.

More code modernization.
This commit is contained in:
Alexander Shaduri
2022-01-18 15:30:55 +04:00
parent 235fba8a04
commit 88e9e8c2f7
25 changed files with 542 additions and 416 deletions
+2 -2
View File
@@ -94,11 +94,11 @@ GscExecutorLogWindow::GscExecutorLogWindow(BaseObjectType* gtkcobj, Glib::RefPtr
// Surprisingly, the treeview column text still works.
// The problem seems to have disappeared (new compiler/runtime?)
// #ifdef _WIN32
// if constexpr(BuildEnv::is_kernel_family_windows()) {
// Gtk::Box* command_hbox = this->lookup_widget<Gtk::Box*>("command_hbox");
// if (command_hbox)
// command_hbox->hide();
// #endif
// }
// ---------------