aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-19 15:29:30 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-19 15:29:30 -0300
commitd2ab1aef311d00656bc2542c79e318e2764728fa (patch)
tree297739ae938cd35dc40df4f6c09c213ee914fa32
parent89b56e7d84d84de58fcc9d540c2003c6c2f8c134 (diff)
downloadlua-d2ab1aef311d00656bc2542c79e318e2764728fa.tar.gz
lua-d2ab1aef311d00656bc2542c79e318e2764728fa.tar.bz2
lua-d2ab1aef311d00656bc2542c79e318e2764728fa.zip
detail (avoid too large macro)
-rw-r--r--ltests.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 13415344..25ada591 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.171 2014/06/10 17:41:38 roberto Exp roberto $ 2** $Id: ltests.c,v 2.172 2014/06/17 17:13:29 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -207,8 +207,10 @@ static int testobjref (global_State *g, GCObject *f, GCObject *t) {
207 return r1; 207 return r1;
208} 208}
209 209
210#define checkobjref(g,f,t) \ 210#define checkobjref(g,f,t) checkobjref_(g,f,obj2gco(t))
211 lua_assert((t) == NULL || testobjref(g,f,obj2gco(t))) 211static void checkobjref_ (global_State *g, GCObject *f, GCObject *t) {
212 lua_assert((t) == NULL || testobjref(g,f,obj2gco(t)));
213}
212 214
213 215
214static void checkvalref (global_State *g, GCObject *f, const TValue *t) { 216static void checkvalref (global_State *g, GCObject *f, const TValue *t) {