aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-01-25 19:05:40 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-01-25 19:05:40 -0200
commita4b96ce9a3305ae3585c0bb143fa7342c140f20b (patch)
treefbb635282c4b72dde25e5c9ffb2bc6d314419d05 /lstate.h
parent291f564485d8968fc7b0d043dda5ff91a7ce604b (diff)
downloadlua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.tar.gz
lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.tar.bz2
lua-a4b96ce9a3305ae3585c0bb143fa7342c140f20b.zip
first implementation of long strings
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lstate.h b/lstate.h
index cff8e202..38a7fb36 100644
--- a/lstate.h
+++ b/lstate.h
@@ -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)