diff options
Diffstat (limited to 'c/win.h')
-rw-r--r-- | c/win.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ auto Metric = GetSystemMetrics(I); /* Check result of Windows API call, throwing error on NULL. */ template <typename T> -inline T require(const T x) +inline T Require(const T x) { if (!x) throw Win32Error(); return x; @@ -53,7 +53,7 @@ inline T require(const T x) /* Check result of Windows API call, showing a warning on NULL. */ template <typename T> -inline T prefer(const T x) +inline T Prefer(const T x) { if (!x) { EBMessageBox(Win32Error().What(), L"System Error", MB_ICONWARNING); |