diff options
Diffstat (limited to '')
| -rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.43 2000/09/25 14:48:42 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.44 2000/09/25 16:22:42 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,7 +166,8 @@ 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 | return 3; | 169 | lua_pushnumber(L, L->nblocks); |
| 170 | return 4; | ||
| 170 | } | 171 | } |
| 171 | else { | 172 | else { |
| 172 | memdebug_memlimit = luaL_check_int(L, 1); | 173 | memdebug_memlimit = luaL_check_int(L, 1); |
