lgc.h
资源名称:wow.rar [点击查看]
上传用户:jxpjxmjjw
上传日期:2009-12-07
资源大小:5877k
文件大小:1k
源码类别:
模拟服务器
开发平台:
Visual C++
- /*
- ** $Id: lgc.h,v 1.1 2004/08/20 02:26:56 JH Exp $
- ** Garbage Collector
- ** See Copyright Notice in lua.h
- */
- #ifndef lgc_h
- #define lgc_h
- #include "lobject.h"
- #define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING));
- if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); }
- size_t luaC_separateudata (lua_State *L);
- void luaC_callGCTM (lua_State *L);
- void luaC_sweep (lua_State *L, int all);
- void luaC_collectgarbage (lua_State *L);
- void luaC_link (lua_State *L, GCObject *o, lu_byte tt);
- #endif