From 6ccb5835ff55d85156be91473c598eca9d6cb9a6 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 16:57:41 +0100 Subject: Revert "Make Lint Happy" This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4. --- src/util/quicktune.h | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'src/util/quicktune.h') diff --git a/src/util/quicktune.h b/src/util/quicktune.h index 6d47f56df..1943d19c2 100644 --- a/src/util/quicktune.h +++ b/src/util/quicktune.h @@ -52,18 +52,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #include #include -enum QuicktuneValueType -{ +enum QuicktuneValueType{ QVT_NONE, QVT_FLOAT }; struct QuicktuneValue { QuicktuneValueType type = QVT_NONE; - union - { - struct - { + union{ + struct{ float current; float min; float max; @@ -84,20 +81,18 @@ void setQuicktuneValue(const std::string &name, const QuicktuneValue &val); void updateQuicktuneValue(const std::string &name, QuicktuneValue &val); #ifndef NDEBUG -#define QUICKTUNE(type_, var, min_, max_, name) \ - { \ - QuicktuneValue qv; \ - qv.type = type_; \ - qv.value_##type_.current = var; \ - qv.value_##type_.min = min_; \ - qv.value_##type_.max = max_; \ - updateQuicktuneValue(name, qv); \ - var = qv.value_##type_.current; \ + #define QUICKTUNE(type_, var, min_, max_, name){\ + QuicktuneValue qv;\ + qv.type = type_;\ + qv.value_##type_.current = var;\ + qv.value_##type_.min = min_;\ + qv.value_##type_.max = max_;\ + updateQuicktuneValue(name, qv);\ + var = qv.value_##type_.current;\ } #else // NDEBUG -#define QUICKTUNE(type, var, min_, max_, name) \ - { \ - } + #define QUICKTUNE(type, var, min_, max_, name){} #endif -#define QUICKTUNE_AUTONAME(type_, var, min_, max_) QUICKTUNE(type_, var, min_, max_, #var) +#define QUICKTUNE_AUTONAME(type_, var, min_, max_)\ + QUICKTUNE(type_, var, min_, max_, #var) -- cgit v1.2.3