mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Make pseudo-indices relative to LUAI_MAXCSTACK
This commit is contained in:
parent
9095fc4b83
commit
6f6ecfd07c
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,9 @@
|
|||
/*
|
||||
** pseudo-indices
|
||||
*/
|
||||
#define LUA_REGISTRYINDEX (-10000)
|
||||
#define LUA_ENVIRONINDEX (-10001)
|
||||
#define LUA_GLOBALSINDEX (-10002)
|
||||
#define LUA_REGISTRYINDEX (-LUAI_MAXCSTACK - 2000)
|
||||
#define LUA_ENVIRONINDEX (-LUAI_MAXCSTACK - 2001)
|
||||
#define LUA_GLOBALSINDEX (-LUAI_MAXCSTACK - 2002)
|
||||
#define lua_upvalueindex(i) (LUA_GLOBALSINDEX - (i))
|
||||
#define lua_ispseudo(i) ((i) <= LUA_REGISTRYINDEX)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue