[ox/std] Make oxIgnoreError constexpr
This commit is contained in:
parent
a2e1ac8851
commit
3ead29a8bb
2
deps/ox/src/ox/std/error.hpp
vendored
2
deps/ox/src/ox/std/error.hpp
vendored
@ -121,7 +121,7 @@ constexpr Error toError(const Result<T> &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
|
||||
|
Loading…
Reference in New Issue
Block a user