Browse Source

constexpr what possible

master
heck 9 months ago
parent
commit
bfa9393c7c
  1. 4
      src/main_perkons.cc

4
src/main_perkons.cc

@ -249,7 +249,7 @@ namespace Heck {
clock_bar_new = clock.count_bar();
if (clock_bar_new != clock_bar_current) {
clock_bar_current = clock_bar_new;
if (Constants::Developer::LOG_CLOCK_BAR) {
if constexpr (Constants::Developer::LOG_CLOCK_BAR) {
hw.PrintLine("Bar: %i", clock_bar_current);
}
}
@ -257,7 +257,7 @@ namespace Heck {
clock_16n_new = clock.count_16n();
if (clock_16n_new != clock_16n_current) {
clock_16n_current = clock_16n_new;
if (Constants::Developer::LOG_CLOCK_16N) {
if constexpr (Constants::Developer::LOG_CLOCK_16N) {
hw.PrintLine("16n: %i", clock_16n_current);
}
sequencer.next_step();

Loading…
Cancel
Save