aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 14:26:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-07-15 14:26:14 -0300
commitf76f4cb79d84af4a7be9e0d75553bbe05a3ae90c (patch)
treedd9d1f8f3fb8c69f7617fe5688d7b1178bb7190e /ltests.c
parentabb85fc059a5d6427b9dc36edee1619f2c7a1da8 (diff)
downloadlua-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index bc5a21e0..cfa14c21 100644
--- a/ltests.c
+++ b/ltests.c
@@ -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}