[ox/std] Add oxReturnError

(synced from d28f727742)
This commit is contained in:
2018-07-07 14:37:31 -05:00
parent 854d46ea77
commit 3bc5751b65
+2
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;