diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-01-25 19:05:40 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-01-25 19:05:40 -0200 |
| commit | a4b96ce9a3305ae3585c0bb143fa7342c140f20b (patch) | |
| tree | fbb635282c4b72dde25e5c9ffb2bc6d314419d05 /lstate.h | |
| parent | 291f564485d8968fc7b0d043dda5ff91a7ce604b (diff) | |
| download | lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.tar.gz lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.tar.bz2 lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.zip | |
first implementation of long strings
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) |
