diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.2 2003/12/12 18:29:34 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -200,7 +200,7 @@ LUA_API void lua_close (lua_State *L) { | |||
200 | lua_lock(L); | 200 | lua_lock(L); |
201 | L = G(L)->mainthread; /* only the main thread can be closed */ | 201 | L = G(L)->mainthread; /* only the main thread can be closed */ |
202 | luaF_close(L, L->stack); /* close all upvalues for this thread */ | 202 | luaF_close(L, L->stack); /* close all upvalues for this thread */ |
203 | luaC_separateudata(L); /* separate udata that have GC metamethods */ | 203 | luaC_separateudata(L, 1); /* separate udata that have GC metamethods */ |
204 | L->errfunc = 0; /* no error function during GC metamethods */ | 204 | L->errfunc = 0; /* no error function during GC metamethods */ |
205 | do { /* repeat until no more errors */ | 205 | do { /* repeat until no more errors */ |
206 | L->ci = L->base_ci; | 206 | L->ci = L->base_ci; |