2 ** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 roberto Exp $
4 ** See Copyright Notice in lua.h
15 * WARNING: if you change the order of this enumeration,
24 TM_EQ
, /* last tag method with `fast' access */
36 TM_N
/* number of elements in the enum */
41 #define gfasttm(g,et,e) ((et) == NULL ? NULL : \
42 ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e]))
44 #define fasttm(l,et,e) gfasttm(G(l), et, e)
46 #define ttypename(x) luaT_typenames_[(x) + 1]
47 #define objtypename(x) ttypename(ttypenv(x))
49 LUAI_DDEC
const char *const luaT_typenames_
[LUA_TOTALTAGS
];
52 LUAI_FUNC
const TValue
*luaT_gettm (Table
*events
, TMS event
, TString
*ename
);
53 LUAI_FUNC
const TValue
*luaT_gettmbyobj (lua_State
*L
, const TValue
*o
,
55 LUAI_FUNC
void luaT_init (lua_State
*L
);