32 static const char *
const luaT_eventname[] = {
33 "__index",
"__newindex",
34 "__gc",
"__mode",
"__len",
"__eq",
35 "__add",
"__sub",
"__mul",
"__div",
"__mod",
36 "__pow",
"__unm",
"__lt",
"__le",
40 for (i=0; i<
TM_N; i++) {
41 G(L)->tmname[
i] =
luaS_new(L, luaT_eventname[i]);
const TValue * luaH_getstr(Table *t, TString *key)
TString * luaS_new(lua_State *L, const char *str)
static const char udatatypename[]
void luaT_init(lua_State *L)
const TValue * luaT_gettmbyobj(lua_State *L, const TValue *o, TMS event)
Handling of system events.
const TValue * luaT_gettm(Table *events, TMS event, TString *ename)
LUAI_DDEF const char *const luaT_typenames_[LUA_TOTALTAGS]