From 943b8f5b1801c72fee8bf1050919cf1acb600555 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Jun 2001 16:41:24 -0300 Subject: details --- lgc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lgc.h') diff --git a/lgc.h b/lgc.h index b1f995cc..82f19b76 100644 --- a/lgc.h +++ b/lgc.h @@ -1,5 +1,5 @@ /* -** $Id: lgc.h,v 1.8 2000/10/02 14:47:43 roberto Exp roberto $ +** $Id: lgc.h,v 1.9 2001/02/02 16:23:20 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -11,9 +11,12 @@ #include "lobject.h" +#define luaC_checkGC(L) if (G(L)->nblocks >= G(L)->GCthreshold) \ + luaC_collectgarbage(L) + + void luaC_collect (lua_State *L, int all); void luaC_collectgarbage (lua_State *L); -void luaC_checkGC (lua_State *L); #endif -- cgit v1.2.3-55-g6feb