diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index 6f157491..9ab7a6fa 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -18,10 +18,6 @@ #define OxError(x) static_cast<ox::Error>(x) #endif -#define oxIgnoreError(x) -#define oxReturnError(x) if (const auto _ox_error = ox::error::toError(x)) return _ox_error -#define oxThrowError(x) if (const auto _ox_error = ox::error::toError(x)) throw _ox_error - namespace ox { struct BaseError { @@ -95,3 +91,7 @@ template<typename T> } +inline void oxIgnoreError(ox::Error) {} +#define oxReturnError(x) if (const auto _ox_error = ox::error::toError(x)) return _ox_error +#define oxThrowError(x) if (const auto _ox_error = ox::error::toError(x)) throw _ox_error +