[ox/std] Fix oxIgnoreError to not completely ignore the statement it encompases
This commit is contained in:
parent
afab2f6878
commit
e59499b127
8
deps/ox/src/ox/std/error.hpp
vendored
8
deps/ox/src/ox/std/error.hpp
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user