Lines Matching refs:value
71 #define TValuefields Value value; int tt
91 #define gcvalue(o) check_exp(iscollectable(o), (o)->value.gc)
92 #define pvalue(o) check_exp(ttislightuserdata(o), (o)->value.p)
93 #define nvalue(o) check_exp(ttisnumber(o), (o)->value.n)
94 #define rawtsvalue(o) check_exp(ttisstring(o), &(o)->value.gc->ts)
96 #define rawuvalue(o) check_exp(ttisuserdata(o), &(o)->value.gc->u)
98 #define clvalue(o) check_exp(ttisfunction(o), &(o)->value.gc->cl)
99 #define hvalue(o) check_exp(ttistable(o), &(o)->value.gc->h)
100 #define bvalue(o) check_exp(ttisboolean(o), (o)->value.b)
101 #define thvalue(o) check_exp(ttisthread(o), &(o)->value.gc->th)
109 lua_assert(!iscollectable(obj) || (ttype(obj) == (obj)->value.gc->gch.tt))
113 ((ttype(obj) == (obj)->value.gc->gch.tt) && !isdead(g, (obj)->value.gc)))
120 { TValue *i_o=(obj); i_o->value.n=(x); i_o->tt=LUA_TNUMBER; }
123 { TValue *i_o=(obj); i_o->value.p=(x); i_o->tt=LUA_TLIGHTUSERDATA; }
126 { TValue *i_o=(obj); i_o->value.b=(x); i_o->tt=LUA_TBOOLEAN; }
130 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TSTRING; \
135 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TUSERDATA; \
140 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTHREAD; \
145 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TFUNCTION; \
150 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TTABLE; \
155 i_o->value.gc=cast(GCObject *, (x)); i_o->tt=LUA_TPROTO; \
163 o1->value = o2->value; o1->tt=o2->tt; \
278 TValue value; /* the value (when closed) */ member