Lines Matching defs:o

112 #define val_(o)		((o)->value_)  argument
113 #define num_(o) (val_(o).n) argument
117 #define rttype(o) ((o)->tt_) argument
123 #define ttype(o) (rttype(o) & 0x3F) argument
126 #define ttypenv(o) (novariant(rttype(o))) argument
130 #define checktag(o,t) (rttype(o) == (t)) argument
131 #define checktype(o,t) (ttypenv(o) == (t)) argument
132 #define ttisnumber(o) checktag((o), LUA_TNUMBER) argument
133 #define ttisnil(o) checktag((o), LUA_TNIL) argument
134 #define ttisboolean(o) checktag((o), LUA_TBOOLEAN) argument
135 #define ttislightuserdata(o) checktag((o), LUA_TLIGHTUSERDATA) argument
136 #define ttisstring(o) checktype((o), LUA_TSTRING) argument
137 #define ttisshrstring(o) checktag((o), ctb(LUA_TSHRSTR)) argument
138 #define ttislngstring(o) checktag((o), ctb(LUA_TLNGSTR)) argument
139 #define ttistable(o) checktag((o), ctb(LUA_TTABLE)) argument
140 #define ttisfunction(o) checktype(o, LUA_TFUNCTION) argument
141 #define ttisclosure(o) ((rttype(o) & 0x1F) == LUA_TFUNCTION) argument
142 #define ttisCclosure(o) checktag((o), ctb(LUA_TCCL)) argument
143 #define ttisLclosure(o) checktag((o), ctb(LUA_TLCL)) argument
144 #define ttislcf(o) checktag((o), LUA_TLCF) argument
145 #define ttisuserdata(o) checktag((o), ctb(LUA_TUSERDATA)) argument
146 #define ttisthread(o) checktag((o), ctb(LUA_TTHREAD)) argument
147 #define ttisdeadkey(o) checktag((o), LUA_TDEADKEY) argument
152 #define nvalue(o) check_exp(ttisnumber(o), num_(o)) argument
153 #define gcvalue(o) check_exp(iscollectable(o), val_(o).gc) argument
154 #define pvalue(o) check_exp(ttislightuserdata(o), val_(o).p) argument
155 #define rawtsvalue(o) check_exp(ttisstring(o), &val_(o).gc->ts) argument
156 #define tsvalue(o) (&rawtsvalue(o)->tsv) argument
157 #define rawuvalue(o) check_exp(ttisuserdata(o), &val_(o).gc->u) argument
158 #define uvalue(o) (&rawuvalue(o)->uv) argument
159 #define clvalue(o) check_exp(ttisclosure(o), &val_(o).gc->cl) argument
160 #define clLvalue(o) check_exp(ttisLclosure(o), &val_(o).gc->cl.l) argument
161 #define clCvalue(o) check_exp(ttisCclosure(o), &val_(o).gc->cl.c) argument
162 #define fvalue(o) check_exp(ttislcf(o), val_(o).f) argument
163 #define hvalue(o) check_exp(ttistable(o), &val_(o).gc->h) argument
164 #define bvalue(o) check_exp(ttisboolean(o), val_(o).b) argument
165 #define thvalue(o) check_exp(ttisthread(o), &val_(o).gc->th) argument
167 #define deadvalue(o) check_exp(ttisdeadkey(o), cast(void *, val_(o).gc)) argument
169 #define l_isfalse(o) (ttisnil(o) || (ttisboolean(o) && bvalue(o) == 0)) argument
172 #define iscollectable(o) (rttype(o) & BIT_ISCOLLECTABLE) argument
184 #define settt_(o,t) ((o)->tt_=(t)) argument
266 #define luai_checknum(L,o,c) { /* empty */ } argument
305 #define v_(o) ((o)->u.i.v__) argument
306 #define d_(o) ((o)->u.d__) argument
307 #define tt_(o) ((o)->u.i.tt__) argument
316 #define v_(o) ((o)->u.i.v__) argument
317 #define d_(o) ((o)->u.d__) argument
318 #define tt_(o) ((o)->u.i.tt__) argument
327 #define val_(o) v_(o) argument
329 #define num_(o) d_(o) argument
337 #define ttisnumber(o) ((tt_(o) & NNMASK) != NNMARK) argument
342 #define rttype(o) (ttisnumber(o) ? LUA_TNUMBER : tt_(o) & 0xff) argument
345 #define settt_(o,t) (tt_(o) = tag2tt(t)) argument
364 #define checktag(o,t) (tt_(o) == tag2tt(t)) argument
365 #define checktype(o,t) (ctb(tt_(o) | VARBITS) == ctb(tag2tt(t) | VARBITS)) argument
373 #define luai_checknum(L,o,c) { if (!ttisnumber(o)) c; } argument
424 #define svalue(o) getstr(rawtsvalue(o)) argument
535 #define isLfunction(o) ttisLclosure(o) argument
537 #define getproto(o) (clLvalue(o)->p) argument