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.170 2005/03/11 15:51:08 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.171 2005/03/16 16:58:41 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 | */ |
@@ -187,9 +187,9 @@ static int luaB_gcinfo (lua_State *L) { | |||
187 | 187 | ||
188 | static int luaB_collectgarbage (lua_State *L) { | 188 | static int luaB_collectgarbage (lua_State *L) { |
189 | static const char *const opts[] = {"stop", "restart", "collect", | 189 | static const char *const opts[] = {"stop", "restart", "collect", |
190 | "count", "step", "setpace", "setstepmul", NULL}; | 190 | "count", "step", "setpause", "setstepmul", NULL}; |
191 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, | 191 | static const int optsnum[] = {LUA_GCSTOP, LUA_GCRESTART, LUA_GCCOLLECT, |
192 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPACE, LUA_GCSETSTEPMUL}; | 192 | LUA_GCCOUNT, LUA_GCSTEP, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL}; |
193 | int o = luaL_findstring(luaL_optstring(L, 1, "collect"), opts); | 193 | int o = luaL_findstring(luaL_optstring(L, 1, "collect"), opts); |
194 | int ex = luaL_optinteger(L, 2, 0); | 194 | int ex = luaL_optinteger(L, 2, 0); |
195 | luaL_argcheck(L, o >= 0, 1, "invalid option"); | 195 | luaL_argcheck(L, o >= 0, 1, "invalid option"); |