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.313 2016/04/11 19:18:40 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.314 2016/09/05 19:06:34 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 | */ |
@@ -173,10 +173,10 @@ static int luaB_rawset (lua_State *L) { | |||
173 | static int luaB_collectgarbage (lua_State *L) { | 173 | static int luaB_collectgarbage (lua_State *L) { |
174 | static const char *const opts[] = {"stop", "restart", "collect", | 174 | static const char *const opts[] = {"stop", "restart", "collect", |
175 | "count", "step", "setpause", "setstepmul", | 175 | "count", "step", "setpause", "setstepmul", |
176 | "isrunning", NULL}; | 176 | "isrunning", "generational", "incremental", NULL}; |
177 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, | 177 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, |
178 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, | 178 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, |
179 | LUA_GCISRUNNING}; | 179 | LUA_GCISRUNNING, LUA_GCGEN, LUA_GCINC}; |
180 | int o = optsnum[luaL_checkoption(L, 1, "collect", opts)]; | 180 | int o = optsnum[luaL_checkoption(L, 1, "collect", opts)]; |
181 | int ex = (int)luaL_optinteger(L, 2, 0); | 181 | int ex = (int)luaL_optinteger(L, 2, 0); |
182 | int res = lua_gc(L, o, ex); | 182 | int res = lua_gc(L, o, ex); |