aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 3af55a79..bba92816 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.237 2010/03/13 03:57:46 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.238 2010/03/19 15:52:48 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*/
@@ -186,10 +186,10 @@ static int luaB_gcinfo (lua_State *L) {
186 186
187static int luaB_collectgarbage (lua_State *L) { 187static int luaB_collectgarbage (lua_State *L) {
188 static const char *const opts[] = {"stop", "restart", "collect", 188 static const char *const opts[] = {"stop", "restart", "collect",
189 "count", "step", "setpause", "setstepmul", "isrunning", NULL}; 189 "count", "step", "setpause", "setstepmul", "isrunning", "gen", NULL};
190 static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, 190 static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT,
191 LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, 191 LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL,
192 LUA_GCISRUNNING}; 192 LUA_GCISRUNNING, LUA_GCGEN};
193 int o = optsnum[luaL_checkoption(L, 1, "collect", opts)]; 193 int o = optsnum[luaL_checkoption(L, 1, "collect", opts)];
194 int ex = luaL_optint(L, 2, 0); 194 int ex = luaL_optint(L, 2, 0);
195 int res = lua_gc(L, o, ex); 195 int res = lua_gc(L, o, ex);