Clean up luaconf.h

This commit is contained in:
Petri Häkkinen 2021-11-18 10:28:28 +02:00
parent a3b5b26c0a
commit 06a94fb097
2 changed files with 3 additions and 3 deletions

View file

@ -131,4 +131,4 @@
#define LUA_VECTOR_SIZE 3 #define LUA_VECTOR_SIZE 3
#endif #endif
#define LUA_EXTRA_VALUE_SIZE LUA_VECTOR_SIZE - 2 // note: this assumes vector size >= 2! #define LUA_EXTRA_SIZE LUA_VECTOR_SIZE - 2

View file

@ -47,7 +47,7 @@ typedef union
typedef struct lua_TValue typedef struct lua_TValue
{ {
Value value; Value value;
int extra[LUA_EXTRA_VALUE_SIZE]; int extra[LUA_EXTRA_SIZE];
int tt; int tt;
} TValue; } TValue;
@ -377,7 +377,7 @@ typedef struct Closure
typedef struct TKey typedef struct TKey
{ {
::Value value; ::Value value;
int extra[LUA_EXTRA_VALUE_SIZE]; int extra[LUA_EXTRA_SIZE];
unsigned tt : 4; unsigned tt : 4;
int next : 28; /* for chaining */ int next : 28; /* for chaining */
} TKey; } TKey;