aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lgc.c b/lgc.c
index 6eba56d9..a82039dd 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.97 2001/04/17 17:35:54 roberto Exp roberto $ 2** $Id: lgc.c,v 1.98 2001/06/05 18:17:01 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*/
@@ -389,9 +389,3 @@ void luaC_collectgarbage (lua_State *L) {
389 callgcTM(L, &luaO_nilobject); 389 callgcTM(L, &luaO_nilobject);
390} 390}
391 391
392
393void luaC_checkGC (lua_State *L) {
394 if (G(L)->nblocks >= G(L)->GCthreshold)
395 luaC_collectgarbage(L);
396}
397