aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 16:41:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-06-05 16:41:24 -0300
commit943b8f5b1801c72fee8bf1050919cf1acb600555 (patch)
tree6bef02079082422a78a933230619867bbb2e00e7 /lgc.h
parent762d059a13d83eb367238a6115bbb4f5f13fcb49 (diff)
downloadlua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.gz
lua-943b8f5b1801c72fee8bf1050919cf1acb600555.tar.bz2
lua-943b8f5b1801c72fee8bf1050919cf1acb600555.zip
details
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lgc.h b/lgc.h
index b1f995cc..82f19b76 100644
--- a/lgc.h
+++ b/lgc.h
@@ -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
14void luaC_collect (lua_State *L, int all); 18void luaC_collect (lua_State *L, int all);
15void luaC_collectgarbage (lua_State *L); 19void luaC_collectgarbage (lua_State *L);
16void luaC_checkGC (lua_State *L);
17 20
18 21
19#endif 22#endif