From f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Jul 2008 14:51:01 -0300 Subject: do not use compatibility macros in Lua --- lbaselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index c2ff76f3..4c855975 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.206 2008/02/25 14:33:57 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.207 2008/07/03 14:23:35 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -183,7 +183,7 @@ static int luaB_rawset (lua_State *L) { static int luaB_gcinfo (lua_State *L) { - lua_pushinteger(L, lua_getgccount(L)); + lua_pushinteger(L, lua_gc(L, LUA_GCCOUNT, 0)); return 1; } -- cgit v1.2.3-55-g6feb