summaryrefslogtreecommitdiff
path: root/ltm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-20 16:14:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-20 16:14:54 -0300
commitbb9605bbc954d53b7d5997c53fceafe4450a6917 (patch)
treef62d6f64623221e2ba807aa080b84f2572640975 /ltm.h
parent67592998809bf5816e2256409b384a712270c7b2 (diff)
downloadlua-bb9605bbc954d53b7d5997c53fceafe4450a6917.tar.gz
lua-bb9605bbc954d53b7d5997c53fceafe4450a6917.tar.bz2
lua-bb9605bbc954d53b7d5997c53fceafe4450a6917.zip
tags can be positive values
Diffstat (limited to 'ltm.h')
-rw-r--r--ltm.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ltm.h b/ltm.h
index 21eec17c..34da30e0 100644
--- a/ltm.h
+++ b/ltm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.h,v 1.9 2000/02/22 18:12:46 roberto Exp roberto $ 2** $Id: ltm.h,v 1.10 2000/03/03 14:58:26 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*/
@@ -40,19 +40,18 @@ struct IM {
40}; 40};
41 41
42 42
43#define luaT_getim(L,tag,event) (&L->IMtable[-(tag)].int_method[event]) 43#define luaT_getim(L,tag,event) (&L->IMtable[tag].int_method[event])
44#define luaT_getimbyObj(L,o,e) (luaT_getim(L, luaT_effectivetag(o),(e))) 44#define luaT_getimbyObj(L,o,e) (luaT_getim(L, luaT_effectivetag(L, o),(e)))
45 45
46extern const char *const luaT_eventname[]; 46extern const char *const luaT_eventname[];
47 47
48 48
49void luaT_init (lua_State *L); 49void luaT_init (lua_State *L);
50void luaT_realtag (lua_State *L, int tag); 50void luaT_realtag (lua_State *L, int tag);
51int luaT_effectivetag (const TObject *o); 51int luaT_effectivetag (lua_State *L, const TObject *o);
52void luaT_settagmethod (lua_State *L, int t, const char *event, TObject *func); 52void luaT_settagmethod (lua_State *L, int t, const char *event, TObject *func);
53const TObject *luaT_gettagmethod (lua_State *L, int t, const char *event); 53const TObject *luaT_gettagmethod (lua_State *L, int t, const char *event);
54const char *luaT_travtagmethods (lua_State *L, int (*fn)(lua_State *, TObject *)); 54const char *luaT_travtagmethods (lua_State *L, int (*fn)(lua_State *, TObject *));
55 55
56int luaT_validevent (int t, int e);
57 56
58#endif 57#endif