38 static const char *
const luaT_eventname[] = {
39 "__index",
"__newindex",
40 "__gc",
"__mode",
"__len",
"__eq",
41 "__add",
"__sub",
"__mul",
"__mod",
"__pow",
43 "__band",
"__bor",
"__bxor",
"__shl",
"__shr",
44 "__unm",
"__bnot",
"__lt",
"__le",
48 for (i=0; i<
TM_N; i++) {
49 G(L)->tmname[i] =
luaS_new(L, luaT_eventname[i]);
void luaG_concaterror(lua_State *L, StkId p1, StkId p2)
void luaD_call(lua_State *L, StkId func, int nResults)
#define restorestack(L, n)
l_noret luaG_opinterror(lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
l_noret luaG_tointerror(lua_State *L, const TValue *p1, const TValue *p2)
void luaD_callnoyield(lua_State *L, StkId func, int nResults)
void luaC_fix(lua_State *L, GCObject *o)
#define ttisfulluserdata(o)
const TValue * luaH_getshortstr(Table *t, TString *key)
LUAI_DDEF const char *const luaT_typenames_[LUA_TOTALTAGS]
int luaT_callbinTM(lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event)
void luaT_trybinTM(lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event)
void luaT_callTM(lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, TValue *p3, int hasres)
int luaT_callorderTM(lua_State *L, const TValue *p1, const TValue *p2, TMS event)
const TValue * luaT_gettm(Table *events, TMS event, TString *ename)
const TValue * luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
static const char udatatypename[]
void luaT_init(lua_State *L)
const char * luaT_objtypename(lua_State *L, const TValue *o)