[ox/std] Fix oxIgnoreError to not completely ignore the statement it encompases

This commit is contained in:
Gary Talent 2020-02-11 00:07:37 -06:00
parent afab2f6878
commit e59499b127

View File

@ -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