aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-07-11 14:51:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-07-11 14:51:01 -0300
commitf9dec5fc84199a782c4ad9c1ec8913574cdfdcd1 (patch)
tree2960bf3965cc4dcba6d1d29f0632e2ed1cac1498 /lbaselib.c
parent6b8725b0eec4379ec810727cc1dccae6feeff21e (diff)
downloadlua-f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1.tar.gz
lua-f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1.tar.bz2
lua-f9dec5fc84199a782c4ad9c1ec8913574cdfdcd1.zip
do not use compatibility macros in Lua
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index c2ff76f3..4c855975 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.206 2008/02/25 14:33:57 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.207 2008/07/03 14:23:35 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -183,7 +183,7 @@ static int luaB_rawset (lua_State *L) {
183 183
184 184
185static int luaB_gcinfo (lua_State *L) { 185static int luaB_gcinfo (lua_State *L) {
186 lua_pushinteger(L, lua_getgccount(L)); 186 lua_pushinteger(L, lua_gc(L, LUA_GCCOUNT, 0));
187 return 1; 187 return 1;
188} 188}
189 189