From cf0ba3259726004f1a5b27963bab28504844527e Mon Sep 17 00:00:00 2001 From: mundusnine Date: Tue, 16 May 2023 12:04:49 +0000 Subject: [PATCH] Enable compile-time user configuration for LUA_VECTOR_SIZE (#929) Add #ifndef guard to enable users to define at compile-time without having to modify the luau source. --- VM/include/luaconf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VM/include/luaconf.h b/VM/include/luaconf.h index 5d6b760e..2045768a 100644 --- a/VM/include/luaconf.h +++ b/VM/include/luaconf.h @@ -143,6 +143,8 @@ long l; \ } +#ifndef LUA_VECTOR_SIZE #define LUA_VECTOR_SIZE 3 // must be 3 or 4 +#endif #define LUA_EXTRA_SIZE (LUA_VECTOR_SIZE - 2)