lgc.h 399 B

1234567891011121314151617181920212223
  1. /*
  2. ** $Id: lgc.h,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $
  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_collect (lua_State *L, int all);
  13. void luaC_collectgarbage (lua_State *L);
  14. #endif