mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 13:00:38 +00:00
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:
parent
97965c7c0a
commit
cf0ba32597
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue