diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index bb7b605ce..b8d15852f 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -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;