#include "lobject.h"
Go to the source code of this file.
Macros | |
#define | gfasttm(g, et, e) |
#define | fasttm(l, et, e) gfasttm(G(l), et, e) |
#define | ttypename(x) luaT_typenames_[(x) + 1] |
#define | objtypename(x) ttypename(ttypenv(x)) |
Enumerations | |
enum | TMS { TM_INDEX, TM_NEWINDEX, TM_GC, TM_MODE, TM_LEN, TM_EQ, TM_ADD, TM_SUB, TM_MUL, TM_DIV, TM_MOD, TM_POW, TM_UNM, TM_LT, TM_LE, TM_CONCAT, TM_CALL, TM_N } |
Functions | |
LUAI_FUNC const TValue * | luaT_gettm (Table *events, TMS event, TString *ename) |
LUAI_FUNC const TValue * | luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) |
LUAI_FUNC void | luaT_init (lua_State *L) |
Variables | |
LUAI_DDEC const char *const | luaT_typenames_ [LUA_TOTALTAGS] |
Definition at line 43 of file ltm.h.
Referenced by get_equalTM(), luaV_gettable(), luaV_objlen(), and luaV_settable().
Definition at line 40 of file ltm.h.
Referenced by luaC_checkfinalizer(), and traversetable().
Definition at line 46 of file ltm.h.
Referenced by luaG_ordererror(), and luaG_typeerror().
#define ttypename | ( | x | ) | luaT_typenames_[(x) + 1] |
Definition at line 45 of file ltm.h.
Referenced by lua_typename().
enum TMS |
Definition at line 51 of file ltm.cpp.
References cast_byte, Table::flags, lua_assert, luaH_getstr(), TM_EQ, and ttisnil.
Definition at line 62 of file ltm.cpp.
References G, hvalue, LUA_TTABLE, LUA_TUSERDATA, luaH_getstr(), luaO_nilobject, ttypenv, and uvalue.
Referenced by call_binTM(), GCTM(), luaV_finishOp(), luaV_gettable(), luaV_objlen(), luaV_settable(), and tryfuncTM().
Definition at line 31 of file ltm.cpp.
References G, i, luaS_fix, luaS_new(), and TM_N.
Referenced by f_luaopen().
LUAI_DDEC const char* const luaT_typenames_[LUA_TOTALTAGS] |