lgc.h 498 B

12345678910111213141516171819202122232425
  1. /*
  2. ** $Id: lgc.h,v 1.20 2003/07/16 20:49:02 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) { if (G(L)->nblocks >= G(L)->GCthreshold) \
  10. luaC_collectgarbage(L); }
  11. size_t 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