diff options
| author | Lua Team <team@lua.org> | 2003-04-11 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2003-04-11 12:00:00 +0000 |
| commit | f0e4e22f5c119865eb5a8d3844a40df2d5980b3b (patch) | |
| tree | c4df063a747e9c99f8aba1678588a030993780a9 /src/lgc.h | |
| parent | 1981b7c90eb09e956e969cda5c473be4560af573 (diff) | |
| download | lua-github-5.0.tar.gz | |
Lua 5.05.0
Diffstat (limited to 'src/lgc.h')
| -rw-r--r-- | src/lgc.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lgc.h,v 1.9 2001/02/02 16:23:20 roberto Exp $ +** $Id: lgc.h,v 1.19 2003/02/28 19:45:15 roberto Exp $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -11,9 +11,15 @@ #include "lobject.h" -void luaC_collect (lua_State *L, int all); +#define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING)); \ + if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); } + + +void luaC_separateudata (lua_State *L); +void luaC_callGCTM (lua_State *L); +void luaC_sweep (lua_State *L, int all); void luaC_collectgarbage (lua_State *L); -void luaC_checkGC (lua_State *L); +void luaC_link (lua_State *L, GCObject *o, lu_byte tt); #endif |
