diff options
| author | Lua Team <team@lua.org> | 2004-09-21 12:00:00 +0000 |
|---|---|---|
| committer | repogen <> | 2004-09-21 12:00:00 +0000 |
| commit | d8fd22e11b391cf183068049bebbee9702c8f78f (patch) | |
| tree | 12d2fd56e51ab38e8ad660c34aca2975d1a273ea /src/lgc.h | |
| parent | 5d480731503a315eab9d6ab9426e3d4cfd5e52f8 (diff) | |
| download | lua-github-5.1-work2.tar.gz | |
Lua 5.1-work25.1-work2
Diffstat (limited to 'src/lgc.h')
| -rw-r--r-- | src/lgc.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lgc.h,v 2.8 2004/08/30 13:44:44 roberto Exp $ +** $Id: lgc.h,v 2.9 2004/09/15 20:38:15 roberto Exp $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -86,6 +86,10 @@ { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \ luaC_barrierf(L,obj2gco(p),obj2gco(o)); } +#define luaC_objbarriert(L,p,o) \ + { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \ + luaC_barrierback(L,obj2gco(p),obj2gco(o)); } + size_t luaC_separateudata (lua_State *L, int all); void luaC_callGCTM (lua_State *L); void luaC_freeall (lua_State *L); |
