From ebd492d94ebd27d76cc52cb7e447332f3d4449a2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 24 Apr 2021 15:50:02 -0500 Subject: [PATCH] [ox/std] Make oxIgnoreError constexpr (synced from 3ead29a8bb35997f8a9bc2c9899965034b07e751) --- src/ox/std/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index c1f78c750..f5be32315 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -121,7 +121,7 @@ constexpr Error toError(const Result &ve) noexcept { } -inline void oxIgnoreError(ox::Error) noexcept {} +constexpr void oxIgnoreError(ox::Error) noexcept {} #if __cplusplus >= 202002L #define oxReturnError(x) if (const auto _ox_error = ox::detail::toError(x)) [[unlikely]] return _ox_error #define oxThrowError(x) if (const auto _ox_error = ox::detail::toError(x)) [[unlikely]] throw _ox_error