diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.117 2010/03/26 20:58:11 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.118 2010/03/29 17:43:14 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -952,6 +952,10 @@ LUA_API int lua_gc (lua_State *L, int what, int data) { | |||
952 | g->gckind = KGC_GEN; | 952 | g->gckind = KGC_GEN; |
953 | break; | 953 | break; |
954 | } | 954 | } |
955 | case LUA_GCINC: { /* change collector to incremental mode */ | ||
956 | g->gckind = KGC_NORMAL; | ||
957 | break; | ||
958 | } | ||
955 | default: res = -1; /* invalid option */ | 959 | default: res = -1; /* invalid option */ |
956 | } | 960 | } |
957 | lua_unlock(L); | 961 | lua_unlock(L); |