diff --git a/src/ox/std/new.hpp b/src/ox/std/new.hpp index b5b8e6272..0595b3e0b 100644 --- a/src/ox/std/new.hpp +++ b/src/ox/std/new.hpp @@ -30,7 +30,7 @@ void *operator new(std::size_t, void*) noexcept; * @return an ox::MallocaPtr of the given type pointing to the requested size memory allocation */ #if defined(OX_USE_STDLIB) -#define ox_malloca(size, Type, ...) ox::MallocaPtr(size > MallocaStackLimit, new (size > MallocaStackLimit ? new uint8_t[size] : ox_alloca(size)) Type(__VA_ARGS__)) +#define ox_malloca(size, Type, ...) ox::MallocaPtr(size > ox::MallocaStackLimit, new (size > ox::MallocaStackLimit ? new uint8_t[size] : ox_alloca(size)) Type(__VA_ARGS__)) #else #define ox_malloca(size, Type, ...) ox::MallocaPtr(false, new (ox_alloca(size)) Type(__VA_ARGS__)) #endif