diff options
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.74 2011/09/30 12:45:07 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.75 2012/01/20 22:05:50 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -193,7 +193,8 @@ union GCObject { | |||
193 | #define gch(o) (&(o)->gch) | 193 | #define gch(o) (&(o)->gch) |
194 | 194 | ||
195 | /* macros to convert a GCObject into a specific value */ | 195 | /* macros to convert a GCObject into a specific value */ |
196 | #define rawgco2ts(o) check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts)) | 196 | #define rawgco2ts(o) \ |
197 | check_exp(novariant((o)->gch.tt) == LUA_TSTRING, &((o)->ts)) | ||
197 | #define gco2ts(o) (&rawgco2ts(o)->tsv) | 198 | #define gco2ts(o) (&rawgco2ts(o)->tsv) |
198 | #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u)) | 199 | #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u)) |
199 | #define gco2u(o) (&rawgco2u(o)->uv) | 200 | #define gco2u(o) (&rawgco2u(o)->uv) |