diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-02 11:47:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-02 11:47:43 -0300 |
| commit | 78bc8e553d4190fc3b90be5b621fc0f3507586ef (patch) | |
| tree | 9bd9317e1a56960b944549d44a20b91024574c19 /ltests.c | |
| parent | dad808a73a98a23729614b8814728d76b4e5d577 (diff) | |
| download | lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.tar.gz lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.tar.bz2 lua-78bc8e553d4190fc3b90be5b621fc0f3507586ef.zip | |
new API for garbage collector
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -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); |
| 169 | lua_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); |
