From dad808a73a98a23729614b8814728d76b4e5d577 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 29 Sep 2000 09:42:13 -0300 Subject: new way to count `nblocks' for GC (try to count bytes). --- ltests.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 85bfaad8..f84383ce 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.43 2000/09/25 14:48:42 roberto Exp roberto $ +** $Id: ltests.c,v 1.44 2000/09/25 16:22:42 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -166,7 +166,8 @@ static int mem_query (lua_State *L) { lua_pushnumber(L, memdebug_total); lua_pushnumber(L, memdebug_numblocks); lua_pushnumber(L, memdebug_maxmem); - return 3; +lua_pushnumber(L, L->nblocks); + return 4; } else { memdebug_memlimit = luaL_check_int(L, 1); -- cgit v1.2.3-55-g6feb