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.
This commit is contained in:
mundusnine 2023-05-16 12:04:49 +00:00 committed by GitHub
parent 97965c7c0a
commit cf0ba32597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)