[ox/std] Add oxReturnError
This commit is contained in:
parent
87b580a72a
commit
d28f727742
2
deps/ox/src/ox/std/error.hpp
vendored
2
deps/ox/src/ox/std/error.hpp
vendored
@ -16,6 +16,8 @@
|
|||||||
#define OxError(x) x
|
#define OxError(x) x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define oxReturnError(x) if (const auto err = x) return OxError(err)
|
||||||
|
|
||||||
namespace ox {
|
namespace ox {
|
||||||
|
|
||||||
using Error = uint64_t;
|
using Error = uint64_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user