diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-07-12 15:11:58 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-07-12 15:11:58 -0300 |
| commit | ae1cf64348ca7bcb6d3abb19a0b97918e343914c (patch) | |
| tree | 23bd25ec0cc4d29ad62a64fad039495fbbee8bb5 /ltm.h | |
| parent | a264fd089e1814bc13d6de924b928959af2e38d9 (diff) | |
| download | lua-ae1cf64348ca7bcb6d3abb19a0b97918e343914c.tar.gz lua-ae1cf64348ca7bcb6d3abb19a0b97918e343914c.tar.bz2 lua-ae1cf64348ca7bcb6d3abb19a0b97918e343914c.zip | |
better names for type-related functions
Diffstat (limited to 'ltm.h')
| -rw-r--r-- | ltm.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.h,v 1.24 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 1.25 2001/06/06 18:00:19 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 | */ |
| @@ -62,7 +62,7 @@ struct TM { | |||
| 62 | #define luaT_gettm(G,tag,event) (G->TMtable[tag].method[event]) | 62 | #define luaT_gettm(G,tag,event) (G->TMtable[tag].method[event]) |
| 63 | #define luaT_gettmbyObj(G,o,e) (luaT_gettm((G),luaT_tag(o),(e))) | 63 | #define luaT_gettmbyObj(G,o,e) (luaT_gettm((G),luaT_tag(o),(e))) |
| 64 | 64 | ||
| 65 | #define basictypename(G, t) getstr(G->TMtable[t].name) | 65 | #define typenamebytag(G, t) getstr(G->TMtable[t].name) |
| 66 | 66 | ||
| 67 | 67 | ||
| 68 | #define validtag(G,t) (NUM_TAGS <= (t) && (t) < G->ntag) | 68 | #define validtag(G,t) (NUM_TAGS <= (t) && (t) < G->ntag) |
