summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/util.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/util.hpp b/compat/util.hpp
index 3adebd5b..b904978b 100644
--- a/compat/util.hpp
+++ b/compat/util.hpp
@@ -15,6 +15,8 @@
#define once_only(...) progn(static bool once = false; if (!once) { once = true; __VA_ARGS__; })
+#define load_time_value(x) progn(static const auto _value132((x)); return _value132;)
+
template<typename t> using mem = std::shared_ptr<t>;
template<typename t> using ptr = std::unique_ptr<t>;