Go to the source code of this file.
Classes | |
struct | GCheader |
union | Value |
struct | lua_TValue |
union | TString |
union | Udata |
struct | Upvaldesc |
struct | LocVar |
struct | Proto |
struct | UpVal |
struct | CClosure |
struct | LClosure |
union | Closure |
union | TKey |
struct | Node |
struct | Table |
Typedefs | |
typedef union GCObject | GCObject |
typedef struct GCheader | GCheader |
typedef union Value | Value |
typedef struct lua_TValue | TValue |
typedef TValue * | StkId |
typedef union TString | TString |
typedef union Udata | Udata |
typedef struct Upvaldesc | Upvaldesc |
typedef struct LocVar | LocVar |
typedef struct Proto | Proto |
typedef struct UpVal | UpVal |
typedef struct CClosure | CClosure |
typedef struct LClosure | LClosure |
typedef union Closure | Closure |
typedef union TKey | TKey |
typedef struct Node | Node |
typedef struct Table | Table |
Functions | |
LUAI_FUNC int | luaO_int2fb (unsigned int x) |
LUAI_FUNC int | luaO_fb2int (int x) |
LUAI_FUNC int | luaO_ceillog2 (unsigned int x) |
LUAI_FUNC lua_Number | luaO_arith (int op, lua_Number v1, lua_Number v2) |
LUAI_FUNC int | luaO_str2d (const char *s, size_t len, lua_Number *result) |
LUAI_FUNC int | luaO_hexavalue (int c) |
LUAI_FUNC const char * | luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp) |
LUAI_FUNC const char * | luaO_pushfstring (lua_State *L, const char *fmt,...) |
LUAI_FUNC void | luaO_chunkid (char *out, const char *source, size_t len) |
Variables | |
LUAI_DDEC const TValue | luaO_nilobject_ |
#define bvalue | ( | o | ) | check_exp(ttisboolean(o), val_(o).b) |
Definition at line 164 of file lobject.h.
Referenced by DumpConstants(), luaV_equalobj_(), mainposition(), and PrintConstant().
#define clCvalue | ( | o | ) | check_exp(ttisCclosure(o), &val_(o).gc->cl.c) |
Definition at line 161 of file lobject.h.
Referenced by aux_upvalue(), index2addr(), lua_tocfunction(), lua_topointer(), lua_upvalueid(), luaD_precall(), and moveto().
#define clLvalue | ( | o | ) | check_exp(ttisLclosure(o), &val_(o).gc->cl.l) |
Definition at line 160 of file lobject.h.
Referenced by aux_upvalue(), findvararg(), getupvalref(), lua_getlocal(), lua_load(), lua_topointer(), luaD_precall(), and luaV_execute().
#define ClosureHeader CommonHeader; lu_byte nupvalues; GCObject *gclist |
#define clvalue | ( | o | ) | check_exp(ttisclosure(o), &val_(o).gc->cl) |
Definition at line 159 of file lobject.h.
Referenced by lua_getinfo().
#define ctb | ( | t | ) | ((t) | BIT_ISCOLLECTABLE) |
#define deadvalue | ( | o | ) | check_exp(ttisdeadkey(o), cast(void *, val_(o).gc)) |
Definition at line 167 of file lobject.h.
Referenced by findindex().
Definition at line 162 of file lobject.h.
Referenced by lua_tocfunction(), lua_topointer(), luaD_precall(), luaV_equalobj_(), and mainposition().
#define gcvalue | ( | o | ) | check_exp(iscollectable(o), val_(o).gc) |
Definition at line 153 of file lobject.h.
Referenced by findindex(), iscleared(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_setmetatable(), lua_setuservalue(), luaV_equalobj_(), mainposition(), and traverseephemeron().
Definition at line 537 of file lobject.h.
Referenced by lua_dump(), and luaV_execute().
#define getstr | ( | ts | ) | cast(const char *, (ts) + 1) |
Definition at line 421 of file lobject.h.
Referenced by addinfo(), anchor_token(), aux_upvalue(), checkrepeated(), closegoto(), DumpString(), funcinfo(), getfuncname(), internshrstr(), l_strcmp(), lexerror(), lua_pushlstring(), lua_pushstring(), luaF_getlocalname(), luaS_eqlngstr(), mainposition(), PrintDebug(), PrintHeader(), PrintString(), undefgoto(), and upvalname().
Definition at line 163 of file lobject.h.
Referenced by lua_getglobal(), lua_getmetatable(), lua_load(), lua_next(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_rawlen(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_setglobal(), lua_setmetatable(), lua_setuservalue(), lua_topointer(), luaT_gettmbyobj(), luaV_equalobj_(), luaV_execute(), luaV_gettable(), luaV_objlen(), and luaV_settable().
#define iscollectable | ( | o | ) | (rttype(o) & BIT_ISCOLLECTABLE) |
Definition at line 172 of file lobject.h.
Referenced by findindex(), iscleared(), and luaV_equalobj_().
#define isLfunction | ( | o | ) | ttisLclosure(o) |
Definition at line 535 of file lobject.h.
Referenced by lua_dump(), and lua_getlocal().
#define l_isfalse | ( | o | ) | (ttisnil(o) || (ttisboolean(o) && bvalue(o) == 0)) |
Definition at line 169 of file lobject.h.
Referenced by call_orderTM(), lua_toboolean(), luaV_equalobj_(), luaV_execute(), and luaV_finishOp().
Definition at line 576 of file lobject.h.
Referenced by internshrstr(), luaS_resize(), and newshrstr().
#define LUA_TCCL (LUA_TFUNCTION | (2 << 4)) /* C closure */ |
Definition at line 51 of file lobject.h.
Referenced by aux_upvalue(), freeobj(), lua_topointer(), lua_upvalueid(), luaD_precall(), luaF_newCclosure(), propagatemark(), and reallymarkobject().
#define LUA_TDEADKEY (LUA_NUMTAGS+2) |
#define LUA_TLCF (LUA_TFUNCTION | (1 << 4)) /* light C function */ |
Definition at line 50 of file lobject.h.
Referenced by lua_topointer(), luaD_precall(), luaV_equalobj_(), and mainposition().
#define LUA_TLCL (LUA_TFUNCTION | (0 << 4)) /* Lua closure */ |
Definition at line 49 of file lobject.h.
Referenced by aux_upvalue(), freeobj(), lua_topointer(), lua_upvalueid(), luaD_precall(), luaF_newLclosure(), propagatemark(), and reallymarkobject().
#define LUA_TLNGSTR (LUA_TSTRING | (1 << 4)) /* long strings */ |
Definition at line 56 of file lobject.h.
Referenced by freeobj(), luaS_eqlngstr(), luaS_newlstr(), luaV_equalobj_(), mainposition(), and reallymarkobject().
#define LUA_TOTALTAGS (LUA_TUPVAL+2) |
#define LUA_TPROTO LUA_NUMTAGS |
Definition at line 21 of file lobject.h.
Referenced by freeobj(), luaF_newproto(), propagatemark(), and reallymarkobject().
#define LUA_TSHRSTR (LUA_TSTRING | (0 << 4)) /* short strings */ |
Definition at line 55 of file lobject.h.
Referenced by freeobj(), luaH_get(), luaH_getstr(), luaS_eqstr(), luaV_equalobj_(), mainposition(), newshrstr(), and reallymarkobject().
#define LUA_TUPVAL (LUA_NUMTAGS+1) |
Definition at line 22 of file lobject.h.
Referenced by freeobj(), luaF_findupval(), luaF_newupval(), and reallymarkobject().
#define luai_checknum | ( | L, | |
o, | |||
c | |||
) | { /* empty */ } |
Definition at line 266 of file lobject.h.
Referenced by lua_pushnumber().
#define luaO_nilobject (&luaO_nilobject_) |
Definition at line 587 of file lobject.h.
Referenced by luaH_get(), luaH_getint(), luaH_getstr(), luaH_set(), luaH_setint(), luaT_gettmbyobj(), luaV_settable(), and makeseed().
Definition at line 120 of file lobject.h.
Referenced by luaC_newobj().
#define numfield lua_Number n; /* numbers */ |
#define nvalue | ( | o | ) | check_exp(ttisnumber(o), num_(o)) |
Definition at line 152 of file lobject.h.
Referenced by addk(), arrayindex(), DumpConstants(), lua_arith(), lua_tointegerx(), lua_tonumberx(), lua_tounsignedx(), luaH_get(), luaH_getint(), luaH_newkey(), luaV_arith(), luaV_equalobj_(), luaV_execute(), luaV_lessequal(), luaV_lessthan(), luaV_tostring(), mainposition(), and PrintConstant().
#define pvalue | ( | o | ) | check_exp(ttislightuserdata(o), val_(o).p) |
Definition at line 154 of file lobject.h.
Referenced by lua_touserdata(), luaV_equalobj_(), and mainposition().
#define rawtsvalue | ( | o | ) | check_exp(ttisstring(o), &val_(o).gc->ts) |
Definition at line 155 of file lobject.h.
Referenced by DumpConstants(), iscleared(), luaH_get(), luaH_getstr(), luaV_equalobj_(), luaV_lessequal(), luaV_lessthan(), luaX_newstring(), mainposition(), and PrintConstant().
#define rawuvalue | ( | o | ) | check_exp(ttisuserdata(o), &val_(o).gc->u) |
Definition at line 157 of file lobject.h.
Referenced by lua_setmetatable(), and lua_touserdata().
Definition at line 197 of file lobject.h.
Referenced by boolK(), collectvalidlines(), LoadConstants(), lua_pushboolean(), luaV_execute(), and luaX_newstring().
Definition at line 225 of file lobject.h.
Referenced by lua_pushcclosure().
Definition at line 220 of file lobject.h.
Referenced by luaU_undump(), luaV_execute(), luaY_parser(), and pushclosure().
#define setdeadvalue | ( | obj | ) | settt_(obj, LUA_TDEADKEY) |
Definition at line 235 of file lobject.h.
Referenced by removeentry().
Definition at line 191 of file lobject.h.
Referenced by lua_pushcclosure().
Definition at line 200 of file lobject.h.
Referenced by GCTM().
Definition at line 230 of file lobject.h.
Referenced by collectvalidlines(), init_registry(), lua_createtable(), lua_getmetatable(), lua_getuservalue(), luaV_execute(), and nilK().
#define sethvalue2s sethvalue |
Definition at line 254 of file lobject.h.
Referenced by open_func().
Definition at line 189 of file lobject.h.
Referenced by addk(), adjust_varargs(), clearkeys(), clearvalues(), collectvalidlines(), LoadConstants(), lua_getuservalue(), lua_newstate(), lua_pushnil(), lua_settop(), luaD_poscall(), luaD_precall(), luaD_reallocstack(), luaF_newupval(), luaH_newkey(), luaV_execute(), nilK(), setarrayvector(), setnodevector(), stack_init(), and traversestack().
Definition at line 186 of file lobject.h.
Referenced by addk(), LoadConstants(), lua_arith(), lua_pushinteger(), lua_pushnumber(), lua_pushunsigned(), luaH_next(), luaH_setint(), luaK_numberK(), luaO_pushvfstring(), luaV_arith(), luaV_execute(), luaV_objlen(), and luaV_tonumber().
#define setobj | ( | L, | |
obj1, | |||
obj2 | |||
) |
Definition at line 239 of file lobject.h.
Referenced by addk(), lua_load(), lua_setupvalue(), luaF_close(), luaV_execute(), and moveto().
#define setobj2n setobj |
Definition at line 261 of file lobject.h.
Referenced by lua_pushcclosure().
#define setobj2s setobj |
Definition at line 252 of file lobject.h.
Referenced by callTM(), GCTM(), lua_getlocal(), lua_getupvalue(), lua_pushvalue(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_xmove(), luaH_next(), luaV_execute(), luaV_finishOp(), luaV_gettable(), and tryfuncTM().
#define setobj2t setobj |
Definition at line 259 of file lobject.h.
Referenced by lua_rawset(), lua_rawsetp(), luaH_newkey(), luaH_setint(), and luaV_settable().
#define setobjs2s setobj |
Definition at line 250 of file lobject.h.
Referenced by adjust_varargs(), callTM(), lua_arith(), lua_getinfo(), lua_insert(), lua_remove(), lua_setlocal(), luaD_poscall(), luaD_throw(), luaG_errormsg(), luaV_concat(), luaV_execute(), luaV_finishOp(), seterrorobj(), and tryfuncTM().
#define setobjt2t setobj |
Definition at line 257 of file lobject.h.
Referenced by luaH_resize().
Definition at line 194 of file lobject.h.
Referenced by lua_pushlightuserdata(), lua_rawgetp(), and lua_rawsetp().
Definition at line 204 of file lobject.h.
Referenced by luaK_numberK(), and luaK_stringK().
#define setsvalue2n setsvalue |
Definition at line 262 of file lobject.h.
Referenced by LoadConstants().
#define setsvalue2s setsvalue |
Definition at line 253 of file lobject.h.
Referenced by lua_concat(), lua_getfield(), lua_getglobal(), lua_pushlstring(), lua_pushstring(), lua_setfield(), lua_setglobal(), luaV_concat(), luaV_tostring(), luaX_newstring(), pushstr(), resume_error(), and seterrorobj().
Definition at line 215 of file lobject.h.
Referenced by init_registry(), lua_newthread(), and lua_pushthread().
Definition at line 210 of file lobject.h.
Referenced by lua_newuserdata().
Definition at line 581 of file lobject.h.
Referenced by luaH_free(), luaH_next(), luaH_resizearray(), numusehash(), and traversetable().
#define svalue | ( | o | ) | getstr(rawtsvalue(o)) |
Definition at line 424 of file lobject.h.
Referenced by GCTM(), getobjname(), kname(), lua_tolstring(), luaO_pushvfstring(), luaV_concat(), luaV_tonumber(), and traversetable().
#define thvalue | ( | o | ) | check_exp(ttisthread(o), &val_(o).gc->th) |
Definition at line 165 of file lobject.h.
Referenced by lua_topointer(), and lua_tothread().
#define tsvalue | ( | o | ) | (&rawtsvalue(o)->tsv) |
Definition at line 156 of file lobject.h.
Referenced by lua_rawlen(), lua_tolstring(), luaV_concat(), luaV_objlen(), and luaV_tonumber().
#define ttisboolean | ( | o | ) | checktag((o), LUA_TBOOLEAN) |
Definition at line 142 of file lobject.h.
Referenced by lua_iscfunction(), and lua_tocfunction().
#define ttisclosure | ( | o | ) | ((rttype(o) & 0x1F) == LUA_TFUNCTION) |
Definition at line 141 of file lobject.h.
Referenced by lua_getinfo().
#define ttisdeadkey | ( | o | ) | checktag((o), LUA_TDEADKEY) |
Definition at line 147 of file lobject.h.
Referenced by findindex().
Definition at line 149 of file lobject.h.
Referenced by luaV_equalobj_().
#define ttisfunction | ( | o | ) | checktype(o, LUA_TFUNCTION) |
Definition at line 140 of file lobject.h.
Referenced by GCTM(), lua_getinfo(), luaG_errormsg(), luaV_gettable(), luaV_settable(), and tryfuncTM().
Definition at line 144 of file lobject.h.
Referenced by index2addr(), lua_iscfunction(), and lua_tocfunction().
Definition at line 143 of file lobject.h.
Referenced by getupvalref().
#define ttislightuserdata | ( | o | ) | checktag((o), LUA_TLIGHTUSERDATA) |
Definition at line 135 of file lobject.h.
Referenced by lua_isuserdata().
#define ttislngstring | ( | o | ) | checktag((o), ctb(LUA_TLNGSTR)) |
Definition at line 133 of file lobject.h.
Referenced by call_binTM(), clearkeys(), clearvalues(), findindex(), getfreepos(), lua_setmetatable(), lua_setuservalue(), luaH_getn(), luaH_newkey(), luaH_next(), luaH_resize(), luaT_gettm(), luaV_execute(), luaV_finishOp(), luaV_gettable(), luaV_objlen(), luaV_settable(), luaX_newstring(), numusearray(), numusehash(), removeentry(), traverseephemeron(), traversestrongtable(), traverseweakvalue(), and unbound_search().
#define ttisnumber | ( | o | ) | checktag((o), LUA_TNUMBER) |
Definition at line 132 of file lobject.h.
Referenced by addk(), arrayindex(), lua_arith(), luaG_concaterror(), luaH_getint(), luaH_newkey(), luaV_concat(), luaV_execute(), luaV_lessequal(), luaV_lessthan(), luaV_tonumber(), and luaV_tostring().
#define ttisshrstring | ( | o | ) | checktag((o), ctb(LUA_TSHRSTR)) |
Definition at line 137 of file lobject.h.
Referenced by luaH_getstr().
#define ttisstring | ( | o | ) | checktype((o), LUA_TSTRING) |
Definition at line 136 of file lobject.h.
Referenced by GCTM(), getobjname(), iscleared(), kname(), lua_tolstring(), luaG_concaterror(), luaV_concat(), luaV_lessequal(), luaV_lessthan(), luaV_tonumber(), and traversetable().
#define ttistable | ( | o | ) | checktag((o), ctb(LUA_TTABLE)) |
Definition at line 139 of file lobject.h.
Referenced by lua_next(), lua_rawget(), lua_rawgeti(), lua_rawgetp(), lua_rawset(), lua_rawseti(), lua_rawsetp(), lua_setmetatable(), lua_setuservalue(), luaV_execute(), luaV_gettable(), and luaV_settable().
#define ttisthread | ( | o | ) | checktag((o), ctb(LUA_TTHREAD)) |
Definition at line 146 of file lobject.h.
Referenced by lua_tothread().
#define ttisuserdata | ( | o | ) | checktag((o), ctb(LUA_TUSERDATA)) |
Definition at line 145 of file lobject.h.
Referenced by lua_getuservalue(), lua_isuserdata(), and lua_setuservalue().
#define ttype | ( | o | ) | (rttype(o) & 0x3F) |
Definition at line 123 of file lobject.h.
Referenced by aux_upvalue(), lua_topointer(), lua_upvalueid(), luaD_precall(), luaH_get(), luaV_equalobj_(), mainposition(), and PrintConstant().
Definition at line 126 of file lobject.h.
Referenced by DumpConstants(), lua_getmetatable(), lua_rawlen(), lua_setmetatable(), lua_touserdata(), lua_type(), luaT_gettmbyobj(), luaV_objlen(), and PrintConstant().
Definition at line 580 of file lobject.h.
Referenced by luaH_resize(), and setnodevector().
#define uvalue | ( | o | ) | (&rawuvalue(o)->uv) |
Definition at line 158 of file lobject.h.
Referenced by lua_getmetatable(), lua_getuservalue(), lua_rawlen(), lua_setmetatable(), lua_setuservalue(), luaT_gettmbyobj(), and luaV_equalobj_().
typedef struct lua_TValue TValue |
LUAI_FUNC lua_Number luaO_arith | ( | int | op, |
lua_Number | v1, | ||
lua_Number | v2 | ||
) |
Definition at line 72 of file lobject.cpp.
References lua_assert, LUA_OPADD, LUA_OPDIV, LUA_OPMOD, LUA_OPMUL, LUA_OPPOW, LUA_OPSUB, and LUA_OPUNM.
Referenced by constfolding(), lua_arith(), and luaV_arith().
Definition at line 54 of file lobject.cpp.
Referenced by countint(), and setnodevector().
Definition at line 251 of file lobject.cpp.
References addstr, LL, POS, PRE, and RETS.
Referenced by addinfo(), funcinfo(), and lexerror().
Definition at line 86 of file lobject.cpp.
References lisdigit, and ltolower.
Referenced by readhexa(), and readhexaesc().
Definition at line 232 of file lobject.cpp.
References luaO_pushvfstring(), and game_logic::msg().
Referenced by addinfo(), check_match(), checkmode(), checkrepeated(), closegoto(), error(), error_expected(), errorlimit(), GCTM(), lexerror(), luaX_token2str(), txtToken(), and undefgoto().
Definition at line 178 of file lobject.cpp.
References cast, cast_num, e, LUA_QL, luaD_checkstack, luaG_runerror(), luaV_concat(), pushstr(), setnvalue, svalue, and lua_State::top.
Referenced by lua_pushfstring(), lua_pushvfstring(), luaG_runerror(), and luaO_pushfstring().
LUAI_FUNC int luaO_str2d | ( | const char * | s, |
size_t | len, | ||
lua_Number * | result | ||
) |
Definition at line 157 of file lobject.cpp.
References cast_uchar, lisspace, lua_str2number, and lua_strx2number().
Referenced by luaV_tonumber().