summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 11:47:43 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 11:47:43 -0300
commit78bc8e553d4190fc3b90be5b621fc0f3507586ef (patch)
tree9bd9317e1a56960b944549d44a20b91024574c19 /ltests.c
parentdad808a73a98a23729614b8814728d76b4e5d577 (diff)
downloadlua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.tar.gz
lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.tar.bz2
lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.zip
new API for garbage collector
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index f84383ce..49717a93 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.44 2000/09/25 16:22:42 roberto Exp roberto $ 2** $Id: ltests.c,v 1.45 2000/09/29 12:42:13 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*/
@@ -166,8 +166,7 @@ static int mem_query (lua_State *L) {
166 lua_pushnumber(L, memdebug_total); 166 lua_pushnumber(L, memdebug_total);
167 lua_pushnumber(L, memdebug_numblocks); 167 lua_pushnumber(L, memdebug_numblocks);
168 lua_pushnumber(L, memdebug_maxmem); 168 lua_pushnumber(L, memdebug_maxmem);
169lua_pushnumber(L, L->nblocks); 169 return 3;
170 return 4;
171 } 170 }
172 else { 171 else {
173 memdebug_memlimit = luaL_check_int(L, 1); 172 memdebug_memlimit = luaL_check_int(L, 1);