diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-05 16:41:24 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-05 16:41:24 -0300 |
commit | 943b8f5b1801c72fee8bf1050919cf1acb600555 (patch) | |
tree | 6bef02079082422a78a933230619867bbb2e00e7 /lgc.h | |
parent | 762d059a13d83eb367238a6115bbb4f5f13fcb49 (diff) | |
download | lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.gz lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.bz2 lua-943b8f5b1801c72fee8bf1050919cf1acb600555.zip |
details
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 1.8 2000/10/02 14:47:43 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 1.9 2001/02/02 16:23:20 roberto Exp roberto $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -11,9 +11,12 @@ | |||
11 | #include "lobject.h" | 11 | #include "lobject.h" |
12 | 12 | ||
13 | 13 | ||
14 | #define luaC_checkGC(L) if (G(L)->nblocks >= G(L)->GCthreshold) \ | ||
15 | luaC_collectgarbage(L) | ||
16 | |||
17 | |||
14 | void luaC_collect (lua_State *L, int all); | 18 | void luaC_collect (lua_State *L, int all); |
15 | void luaC_collectgarbage (lua_State *L); | 19 | void luaC_collectgarbage (lua_State *L); |
16 | void luaC_checkGC (lua_State *L); | ||
17 | 20 | ||
18 | 21 | ||
19 | #endif | 22 | #endif |