aboutsummaryrefslogtreecommitdiff
path: root/lgc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-10-21 16:15:15 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-10-21 16:15:15 -0200
commit3ad55386c4ed4bf1255e5a15ef439431184a025f (patch)
tree17684f6102612d81aa0c76a570a39d524a58f046 /lgc.h
parentcaf82787100985ceee400a85723ccdad2a2efe24 (diff)
downloadlua-3ad55386c4ed4bf1255e5a15ef439431184a025f.tar.gz
lua-3ad55386c4ed4bf1255e5a15ef439431184a025f.tar.bz2
lua-3ad55386c4ed4bf1255e5a15ef439431184a025f.zip
'condchangemem' also may need to run 'pre'/'pos'
Diffstat (limited to 'lgc.h')
-rw-r--r--lgc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lgc.h b/lgc.h
index 0d77edb5..39691b33 100644
--- a/lgc.h
+++ b/lgc.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.h,v 2.88 2015/10/20 17:56:21 roberto Exp roberto $ 2** $Id: lgc.h,v 2.89 2015/10/20 18:00:19 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*/
@@ -108,7 +108,8 @@
108** GC cycle on every opportunity) 108** GC cycle on every opportunity)
109*/ 109*/
110#define luaC_condGC(L,pre,pos) \ 110#define luaC_condGC(L,pre,pos) \
111 {if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; condchangemem(L);} 111 { if (G(L)->GCdebt > 0) { pre; luaC_step(L); pos;}; \
112 condchangemem(L,pre,pos); }
112 113
113/* more often than not, 'pre'/'pos' are empty */ 114/* more often than not, 'pre'/'pos' are empty */
114#define luaC_checkGC(L) luaC_condGC(L,,) 115#define luaC_checkGC(L) luaC_condGC(L,,)