lgc.h 458 B

123456789101112131415161718192021222324
  1. /*
  2. ** $Id: lgc.h,v 1.16 2002/08/30 19:09:21 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. void luaC_callallgcTM (lua_State *L);
  12. void luaC_sweep (lua_State *L, int all);
  13. void luaC_collectgarbage (lua_State *L);
  14. void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
  15. #endif