From 046a3d6173792b7d4d4d26a4e063e2fe383c10a7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 5 Oct 2000 10:00:17 -0300 Subject: tag methods are always functions, so don't need to store a whole object --- ldebug.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 8a9a2ca6..f3b92af9 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.43 2000/10/02 20:10:55 roberto Exp roberto $ +** $Id: ldebug.c,v 1.44 2000/10/05 12:14:08 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -203,12 +203,14 @@ static void lua_funcinfo (lua_State *L, lua_Debug *ar, StkId func) { static const char *travtagmethods (lua_State *L, const TObject *o) { - int e; - for (e=0; elast_tag; t++) - if (luaO_equalObj(o, luaT_getim(L, t,e))) - return luaT_eventname[e]; + if (ttype(o) == LUA_TFUNCTION) { + int e; + for (e=0; elast_tag; t++) + if (clvalue(o) == luaT_gettm(L, t, e)) + return luaT_eventname[e]; + } } return NULL; } -- cgit v1.2.3-55-g6feb