Explorar o código

'gcinfo' was deprecated in version 5.0.

Roberto Ierusalimschy %!s(int64=15) %!d(string=hai) anos
pai
achega
cca71912e6
Modificáronse 1 ficheiros con 1 adicións e 8 borrados
  1. 1 8
      lbaselib.c

+ 1 - 8
lbaselib.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lbaselib.c,v 1.241 2010/04/02 15:19:19 roberto Exp roberto $
+** $Id: lbaselib.c,v 1.242 2010/04/19 16:36:06 roberto Exp roberto $
 ** Basic library
 ** See Copyright Notice in lua.h
 */
@@ -140,12 +140,6 @@ static int luaB_rawset (lua_State *L) {
 }
 
 
-static int luaB_gcinfo (lua_State *L) {
-  lua_pushinteger(L, lua_gc(L, LUA_GCCOUNT, 0));
-  return 1;
-}
-
-
 static int luaB_collectgarbage (lua_State *L) {
   static const char *const opts[] = {"stop", "restart", "collect",
     "count", "step", "setpause", "setstepmul", "isrunning",
@@ -481,7 +475,6 @@ static const luaL_Reg base_funcs[] = {
   {"collectgarbage", luaB_collectgarbage},
   {"dofile", luaB_dofile},
   {"error", luaB_error},
-  {"gcinfo", luaB_gcinfo},
   {"getfenv", luaB_getfenv},
   {"getmetatable", luaB_getmetatable},
   {"ipairs", luaB_ipairs},