[ox/std] Make oxIgnoreError take const ref
This commit is contained in:
parent
e2b9823ae2
commit
5f7bb2e1ae
2
deps/ox/src/ox/std/error.hpp
vendored
2
deps/ox/src/ox/std/error.hpp
vendored
@ -169,7 +169,7 @@ constexpr Error toError(const Result<T> &ve) noexcept {
|
||||
|
||||
}
|
||||
|
||||
constexpr void oxIgnoreError(ox::Error) noexcept {}
|
||||
constexpr void oxIgnoreError(const 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]] ox::Exception(_ox_error)
|
||||
|
Loading…
Reference in New Issue
Block a user