mirror of
https://github.com/lua/lua
synced 2024-11-22 21:01:26 +03:00
'gcinfo' was deprecated in version 5.0.
This commit is contained in:
parent
8003e9544d
commit
cca71912e6
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user