2
0

lgc.h 538 B

12345678910111213141516171819202122232425
  1. /*
  2. ** $Id: lgc.h,v 1.18 2003/02/10 17:32:50 roberto Exp roberto $
  3. ** Garbage Collector
  4. ** See Copyright Notice in lua.h
  5. */
  6. #ifndef lgc_h
  7. #define lgc_h
  8. #include "lobject.h"
  9. #define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING)); \
  10. if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); }
  11. void luaC_separateudata (lua_State *L);
  12. void luaC_callGCTM (lua_State *L);
  13. void luaC_sweep (lua_State *L, int all);
  14. void luaC_collectgarbage (lua_State *L);
  15. void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
  16. #endif