2 ** $Id: ltm.h,v 1.18 2000/10/05 13:00:17 roberto Exp $
4 ** See Copyright Notice in lua.h
15 * WARNING: if you change the order of this enumeration,
34 TM_N
/* number of elements in the enum */
39 Closure
*method
[TM_N
];
40 TString
*collected
; /* list of garbage-collected udata with this tag */
44 #define luaT_gettm(L,tag,event) (L->TMtable[tag].method[event])
45 #define luaT_gettmbyObj(L,o,e) (luaT_gettm((L),luaT_tag(o),(e)))
48 #define validtag(t) (NUM_TAGS <= (t) && (t) <= L->last_tag)
50 extern const char *const luaT_eventname
[];
53 void luaT_init (lua_State
*L
);
54 void luaT_realtag (lua_State
*L
, int tag
);
55 int luaT_tag (const TObject
*o
);
56 int luaT_validevent (int t
, int e
); /* used by compatibility module */