[ox/std] Add oxReturnError

This commit is contained in:
Gary Talent 2018-07-07 14:37:31 -05:00
parent 87b580a72a
commit d28f727742

View File

@ -16,6 +16,8 @@
#define OxError(x) x
#endif
#define oxReturnError(x) if (const auto err = x) return OxError(err)
namespace ox {
using Error = uint64_t;