aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lgc.h b/lgc.h
index becc60fe..6079c03d 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.13 2005/04/25 19:24:10 roberto Exp roberto $ 2** $Id: lgc.h,v 2.14 2005/06/07 18:53:45 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*/
@@ -77,7 +77,9 @@
77#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS) 77#define luaC_white(g) cast(lu_byte, (g)->currentwhite & WHITEBITS)
78 78
79 79
80#define luaC_checkGC(L) { if (G(L)->totalbytes >= G(L)->GCthreshold) \ 80#define luaC_checkGC(L) { \
81 condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1)); \
82 if (G(L)->totalbytes >= G(L)->GCthreshold) \
81 luaC_step(L); } 83 luaC_step(L); }
82 84
83 85