summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/util.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/util.hpp b/compat/util.hpp
index 5a7ccd86..a6bf5113 100644
--- a/compat/util.hpp
+++ b/compat/util.hpp
@@ -16,7 +16,7 @@
#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__; })
+#define once_only(...) do { static bool once = false; if (!once) { once = true; __VA_ARGS__; } } while(false)
#define load_time_value(x) \
progn( \
static const auto _value132((x)); \