diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-19 15:29:30 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-06-19 15:29:30 -0300 |
| commit | d2ab1aef311d00656bc2542c79e318e2764728fa (patch) | |
| tree | 297739ae938cd35dc40df4f6c09c213ee914fa32 | |
| parent | 89b56e7d84d84de58fcc9d540c2003c6c2f8c134 (diff) | |
| download | lua-d2ab1aef311d00656bc2542c79e318e2764728fa.tar.gz lua-d2ab1aef311d00656bc2542c79e318e2764728fa.tar.bz2 lua-d2ab1aef311d00656bc2542c79e318e2764728fa.zip | |
detail (avoid too large macro)
| -rw-r--r-- | ltests.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -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))) | 211 | static void checkobjref_ (global_State *g, GCObject *f, GCObject *t) { |
| 212 | lua_assert((t) == NULL || testobjref(g,f,obj2gco(t))); | ||
| 213 | } | ||
| 212 | 214 | ||
| 213 | 215 | ||
| 214 | static void checkvalref (global_State *g, GCObject *f, const TValue *t) { | 216 | static void checkvalref (global_State *g, GCObject *f, const TValue *t) { |
