diff --git a/src/ox/std/error.hpp b/src/ox/std/error.hpp index 5e365bab2..2baea002f 100644 --- a/src/ox/std/error.hpp +++ b/src/ox/std/error.hpp @@ -19,7 +19,8 @@ #endif #define oxIgnoreError(x) -#define oxReturnError(x) if (const auto _err = ox::error::toError(x)) return _err +#define oxReturnError(x) if (const auto _ox_error = ox::error::toError(x)) return _ox_error +#define oxThrowError(x) if (const auto _ox_error = ox::error::toError(x)) throw _ox_error namespace ox { diff --git a/src/ox/std/memops.cpp b/src/ox/std/memops.cpp index e24a3def3..3c3472e2c 100644 --- a/src/ox/std/memops.cpp +++ b/src/ox/std/memops.cpp @@ -11,7 +11,7 @@ #ifndef OX_USE_STDLIB -#define ox_inhibit_loop_to_libcall __attribute__((__optimize__ ("-fno-tree-loop-distribute-patterns"))) +#define ox_inhibit_loop_to_libcall __attribute__((__optimize__("-fno-tree-loop-distribute-patterns"))) extern "C" {