aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 17:10:55 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-02 17:10:55 -0300
commitf6834f4393eaa1055c2bbde82ebb33cc58be8371 (patch)
tree3583008ef181106d0fc7e130300f12adc70a5854 /ltm.c
parent78bc8e553d4190fc3b90be5b621fc0f3507586ef (diff)
downloadlua-f6834f4393eaa1055c2bbde82ebb33cc58be8371.tar.gz
lua-f6834f4393eaa1055c2bbde82ebb33cc58be8371.tar.bz2
lua-f6834f4393eaa1055c2bbde82ebb33cc58be8371.zip
new API function `lua_type' + new type lua_Type
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltm.c b/ltm.c
index fd854d66..524b4fb2 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 1.49 2000/09/11 20:29:27 roberto Exp roberto $ 2** $Id: ltm.c,v 1.50 2000/09/29 12:42:13 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*/
@@ -118,7 +118,7 @@ int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) {
118 118
119 119
120int luaT_effectivetag (lua_State *L, const TObject *o) { 120int luaT_effectivetag (lua_State *L, const TObject *o) {
121 lua_Type t = ttype(o); 121 lua_Tag t = ttype(o);
122 switch (t) { 122 switch (t) {
123 case TAG_USERDATA: { 123 case TAG_USERDATA: {
124 int tag = tsvalue(o)->u.d.tag; 124 int tag = tsvalue(o)->u.d.tag;
@@ -151,7 +151,7 @@ void lua_settagmethod (lua_State *L, int t, const char *event) {
151 checktag(L, t); 151 checktag(L, t);
152 if (!luaT_validevent(t, e)) 152 if (!luaT_validevent(t, e))
153 luaO_verror(L, "cannot change `%.20s' tag method for type `%.20s'%.20s", 153 luaO_verror(L, "cannot change `%.20s' tag method for type `%.20s'%.20s",
154 luaT_eventname[e], luaO_typenames[t], 154 luaT_eventname[e], lua_typename(L, luaO_tag2type(t)),
155 (t == TAG_TABLE || t == TAG_USERDATA) ? " with default tag" 155 (t == TAG_TABLE || t == TAG_USERDATA) ? " with default tag"
156 : ""); 156 : "");
157 temp = *(L->top - 1); 157 temp = *(L->top - 1);