diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-07-16 17:49:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-07-16 17:49:02 -0300 |
commit | fa26d294aef136aa4ec48c23b4b87b853df0e3da (patch) | |
tree | f8ccce58fe28fbc116f082766eecf3a50812c82d /lgc.h | |
parent | 5a761e3a1519eae7264209db8257b040c77556aa (diff) | |
download | lua-fa26d294aef136aa4ec48c23b4b87b853df0e3da.tar.gz lua-fa26d294aef136aa4ec48c23b4b87b853df0e3da.tar.bz2 lua-fa26d294aef136aa4ec48c23b4b87b853df0e3da.zip |
new way to control `pc' of running functions
Diffstat (limited to 'lgc.h')
-rw-r--r-- | lgc.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.h,v 1.18 2003/02/10 17:32:50 roberto Exp roberto $ | 2 | ** $Id: lgc.h,v 1.19 2003/02/28 19:45:15 roberto Exp $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -11,8 +11,8 @@ | |||
11 | #include "lobject.h" | 11 | #include "lobject.h" |
12 | 12 | ||
13 | 13 | ||
14 | #define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING)); \ | 14 | #define luaC_checkGC(L) { if (G(L)->nblocks >= G(L)->GCthreshold) \ |
15 | if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); } | 15 | luaC_collectgarbage(L); } |
16 | 16 | ||
17 | 17 | ||
18 | void luaC_separateudata (lua_State *L); | 18 | void luaC_separateudata (lua_State *L); |