diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.150 2013/08/27 18:53:35 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.151 2013/08/27 20:04:00 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -653,7 +653,8 @@ static int gc_local (lua_State *L) { | |||
653 | 653 | ||
654 | static int gc_state (lua_State *L) { | 654 | static int gc_state (lua_State *L) { |
655 | static const char *statenames[] = {"propagate", "atomic", | 655 | static const char *statenames[] = {"propagate", "atomic", |
656 | "sweepudata", "sweep", "pause", ""}; | 656 | "sweeplocal", "sweepfin", "sweepall", "sweepmainth", |
657 | "pause", ""}; | ||
657 | int option = luaL_checkoption(L, 1, "", statenames); | 658 | int option = luaL_checkoption(L, 1, "", statenames); |
658 | if (option == GCSpause + 1) { | 659 | if (option == GCSpause + 1) { |
659 | lua_pushstring(L, statenames[G(L)->gcstate]); | 660 | lua_pushstring(L, statenames[G(L)->gcstate]); |