From cab28c6e61dea10832dc5ae978ac675774de36e3 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 18 Aug 2018 23:57:59 -0500 Subject: [PATCH] [ox/std] Fix oxReturnError to not re-originate the Error (synced from f12de38211b8f632cb0dfc6532bd3a98391e3471) --- src/ox/std/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index b8d15852f..e604eec12 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -16,7 +16,7 @@ #define OxError(x) x #endif -#define oxReturnError(x) if (const auto err = x) return OxError(err) +#define oxReturnError(x) if (const auto err = x) return err namespace ox {