mirror of
https://github.com/lua/lua.git
synced 2025-07-04 23:19:38 +00:00
new way to control stack overflow, controling only total size of the stack
This commit is contained in:
parent
abb85fc059
commit
f76f4cb79d
10 changed files with 100 additions and 78 deletions
4
lua.h
4
lua.h
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lua.h,v 1.239 2009/06/17 17:49:44 roberto Exp roberto $
|
||||
** $Id: lua.h,v 1.240 2009/06/18 18:59:18 roberto Exp roberto $
|
||||
** Lua - An Extensible Extension Language
|
||||
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
|
||||
** See Copyright Notice at the end of this file
|
||||
|
@ -33,7 +33,7 @@
|
|||
/*
|
||||
** pseudo-indices
|
||||
*/
|
||||
#define LUA_REGISTRYINDEX (-(LUAI_MCS_AUX) - 1)
|
||||
#define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX
|
||||
#define LUA_ENVIRONINDEX (LUA_REGISTRYINDEX - 1)
|
||||
#define LUA_GLOBALSINDEX (LUA_ENVIRONINDEX - 1)
|
||||
#define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue