1
0
mirror of https://github.com/lua/lua.git synced 2025-02-04 06:13:04 +08:00

new names for tag methods

This commit is contained in:
Roberto Ierusalimschy 2002-03-18 17:24:14 -03:00
parent 24d6d0528d
commit 578d1da00d

12
ltm.c
View File

@ -1,5 +1,5 @@
/* /*
** $Id: ltm.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ ** $Id: ltm.c,v 1.87 2002/02/14 21:40:29 roberto Exp roberto $
** Tag methods ** Tag methods
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -25,11 +25,11 @@ const char *const luaT_typenames[] = {
void luaT_init (lua_State *L) { void luaT_init (lua_State *L) {
static const char *const luaT_eventname[] = { /* ORDER TM */ static const char *const luaT_eventname[] = { /* ORDER TM */
"gettable", "settable", "index", "__gettable", "__settable", "__index",
"gc", "weakmode", "__gc", "__weakmode",
"add", "sub", "mul", "div", "__add", "__sub", "__mul", "__div",
"pow", "unm", "lt", "concat", "__pow", "__unm", "__lt", "__concat",
"call" "__call"
}; };
int i; int i;
for (i=0; i<TM_N; i++) { for (i=0; i<TM_N; i++) {