aboutsummaryrefslogtreecommitdiff
path: root/ltm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-05 09:14:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-05 09:14:08 -0300
commit001f2bdd0e2f8803889c1b5164b57a51e44aef5b (patch)
treed200cf4d708be3c61e64640c45b47050c9c6a375 /ltm.h
parentcd2ddaded97f7f2b2af02cecfd165cf70e6f83f4 (diff)
downloadlua-001f2bdd0e2f8803889c1b5164b57a51e44aef5b.tar.gz
lua-001f2bdd0e2f8803889c1b5164b57a51e44aef5b.tar.bz2
lua-001f2bdd0e2f8803889c1b5164b57a51e44aef5b.zip
new definition for types-tags
Diffstat (limited to '')
-rw-r--r--ltm.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/ltm.h b/ltm.h
index 22974dc5..c6de9e36 100644
--- a/ltm.h
+++ b/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.h,v 1.15 2000/09/05 19:33:32 roberto Exp roberto $ 2** $Id: ltm.h,v 1.16 2000/10/03 14:27:44 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -42,14 +42,17 @@ struct IM {
42 42
43 43
44#define luaT_getim(L,tag,event) (&L->IMtable[tag].int_method[event]) 44#define luaT_getim(L,tag,event) (&L->IMtable[tag].int_method[event])
45#define luaT_getimbyObj(L,o,e) (&luaT_gettagmethods((L),(o))[e]) 45#define luaT_getimbyObj(L,o,e) (luaT_getim((L),luaT_tag(o),(e)))
46
47
48#define validtag(t) (NUM_TAGS <= (t) && (t) <= L->last_tag)
46 49
47extern const char *const luaT_eventname[]; 50extern const char *const luaT_eventname[];
48 51
49 52
50void luaT_init (lua_State *L); 53void luaT_init (lua_State *L);
51void luaT_realtag (lua_State *L, int tag); 54void luaT_realtag (lua_State *L, int tag);
52const TObject *luaT_gettagmethods (lua_State *L, const TObject *o); 55int luaT_tag (const TObject *o);
53int luaT_validevent (int t, int e); /* used by compatibility module */ 56int luaT_validevent (int t, int e); /* used by compatibility module */
54 57
55 58