diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 14:26:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 14:26:14 -0300 |
commit | f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c (patch) | |
tree | dd9d1f8f3fb8c69f7617fe5688d7b1178bb7190e /ltests.c | |
parent | abb85fc059a5d6427b9dc36edee1619f2c7a1da8 (diff) | |
download | lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.gz lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.bz2 lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.zip |
new way to control stack overflow, controling only total size of the stack
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.65 2009/06/15 19:51:31 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.66 2009/06/17 17:53:14 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -570,7 +570,6 @@ static int stacklevel (lua_State *L) { | |||
570 | unsigned long a = 0; | 570 | unsigned long a = 0; |
571 | lua_pushinteger(L, (L->top - L->stack)); | 571 | lua_pushinteger(L, (L->top - L->stack)); |
572 | lua_pushinteger(L, (L->stack_last - L->stack)); | 572 | lua_pushinteger(L, (L->stack_last - L->stack)); |
573 | lua_pushinteger(L, L->nci); | ||
574 | lua_pushinteger(L, (unsigned long)&a); | 573 | lua_pushinteger(L, (unsigned long)&a); |
575 | return 5; | 574 | return 5; |
576 | } | 575 | } |