From bcdbdaccc37aacdb8305f5012c2963e4cb343005 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Dec 1999 16:28:40 -0200 Subject: more debug information (still with bug for tag methods...) --- liolib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index df8e5c53..b58bcaff 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.53 1999/12/27 13:04:53 roberto Exp roberto $ +** $Id: liolib.c,v 1.54 1999/12/28 11:52:49 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -546,9 +546,12 @@ static void errorfb (lua_State *L) { break; /* buffer is full */ } switch (*lua_getobjname(L, func, &name)) { - case 'g': + case 'g': case 'l': sprintf(buff+strlen(buff), "function `%.50s'", name); break; + case 'f': + sprintf(buff+strlen(buff), "method `%.50s'", name); + break; case 't': sprintf(buff+strlen(buff), "`%.50s' tag method", name); break; -- cgit v1.2.3-55-g6feb