diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
187 | static int luaB_collectgarbage (lua_State *L) { | 187 | static 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); |