summaryrefslogtreecommitdiffhomepage
path: root/compat/util.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-10 12:50:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-10 12:50:25 +0200
commitd415d383db1e1cf8038ffb34459864e3b6e19f39 (patch)
tree888cfaaab4733269b4342ea0337460f774c87023 /compat/util.hpp
parent1a4ad209341b7ef2364f7b6bc8195a4ac93838d0 (diff)
minor cleanup only
Diffstat (limited to 'compat/util.hpp')
-rw-r--r--compat/util.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/util.hpp b/compat/util.hpp
index 823b83d1..3a53e203 100644
--- a/compat/util.hpp
+++ b/compat/util.hpp
@@ -12,7 +12,7 @@
#include <QSharedPointer>
#include <QDebug>
-#define progn(...) ([&]() { __VA_ARGS__ }())
+#define progn(...) (([&]() { __VA_ARGS__ })())
#define prog1(x, ...) (([&]() { auto _ret1324 = (x); do { __VA_ARGS__; } while (0); return _ret1324; })())
#define once_only(...) progn(static bool once = false; if (!once) { once = true; __VA_ARGS__; })