diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index bb7b605c..b8d15852 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/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;