Imported from ../lua-5.0.3.tar.gz.
[lua.git] / src / lgc.h
blob3f4d7486e911b116187718bbc568f361dd6d43a8
1 /*
2 ** $Id: lgc.h,v 1.19a 2003/02/28 19:45:15 roberto Exp $
3 ** Garbage Collector
4 ** See Copyright Notice in lua.h
5 */
7 #ifndef lgc_h
8 #define lgc_h
11 #include "lobject.h"
14 #define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING)); \
15 if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); }
18 size_t luaC_separateudata (lua_State *L);
19 void luaC_callGCTM (lua_State *L);
20 void luaC_sweep (lua_State *L, int all);
21 void luaC_collectgarbage (lua_State *L);
22 void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
25 #endif