diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-16 17:00:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-16 17:00:28 -0300 |
commit | ecc7769de2f3fb898235759cda9ae822a6168341 (patch) | |
tree | a03e317d323b32ab7282c3ff18419f6fbf77f578 /lstate.c | |
parent | da19c436cc361401563eeda2cca3d161a6ddeef7 (diff) | |
download | lua-ecc7769de2f3fb898235759cda9ae822a6168341.tar.gz lua-ecc7769de2f3fb898235759cda9ae822a6168341.tar.bz2 lua-ecc7769de2f3fb898235759cda9ae822a6168341.zip |
names...
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 1.102 2002/08/06 15:32:22 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.103 2002/08/07 19:22:39 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 | */ |
@@ -159,7 +159,7 @@ void luaE_closethread (lua_State *OL, lua_State *L) { | |||
159 | static void close_state (lua_State *L) { | 159 | static void close_state (lua_State *L) { |
160 | luaF_close(L, L->stack); /* close all upvalues for this thread */ | 160 | luaF_close(L, L->stack); /* close all upvalues for this thread */ |
161 | if (G(L)) { /* close global state */ | 161 | if (G(L)) { /* close global state */ |
162 | luaC_collect(L, 1); /* collect all elements */ | 162 | luaC_sweep(L, 1); /* collect all elements */ |
163 | lua_assert(G(L)->rootproto == NULL); | 163 | lua_assert(G(L)->rootproto == NULL); |
164 | lua_assert(G(L)->rootudata == NULL); | 164 | lua_assert(G(L)->rootudata == NULL); |
165 | lua_assert(G(L)->rootcl == NULL); | 165 | lua_assert(G(L)->rootcl == NULL); |