diff options
Diffstat (limited to 'c/common.h')
-rw-r--r-- | c/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -55,6 +55,10 @@ std::optional<T> maybe_make(U... xs) } } +/* Variable template for caching values from GetSystemMetrics. */ +template <int I> +const auto Metric = GetSystemMetrics(I); + /* Check result of Windows API call, throwing error on NULL. */ template <typename T> inline T require(const T x) |