aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-30 16:28:40 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-12-30 16:28:40 -0200
commitbcdbdaccc37aacdb8305f5012c2963e4cb343005 (patch)
treec6e0ad8afa371840f49d92b3f1455f3e57cbccc6 /liolib.c
parent5cafe5af02bfe2188ba0b69f5a7a8fe44c38ed24 (diff)
downloadlua-bcdbdaccc37aacdb8305f5012c2963e4cb343005.tar.gz
lua-bcdbdaccc37aacdb8305f5012c2963e4cb343005.tar.bz2
lua-bcdbdaccc37aacdb8305f5012c2963e4cb343005.zip
more debug information (still with bug for tag methods...)
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index df8e5c53..b58bcaff 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.53 1999/12/27 13:04:53 roberto Exp roberto $ 2** $Id: liolib.c,v 1.54 1999/12/28 11:52:49 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -546,9 +546,12 @@ static void errorfb (lua_State *L) {
546 break; /* buffer is full */ 546 break; /* buffer is full */
547 } 547 }
548 switch (*lua_getobjname(L, func, &name)) { 548 switch (*lua_getobjname(L, func, &name)) {
549 case 'g': 549 case 'g': case 'l':
550 sprintf(buff+strlen(buff), "function `%.50s'", name); 550 sprintf(buff+strlen(buff), "function `%.50s'", name);
551 break; 551 break;
552 case 'f':
553 sprintf(buff+strlen(buff), "method `%.50s'", name);
554 break;
552 case 't': 555 case 't':
553 sprintf(buff+strlen(buff), "`%.50s' tag method", name); 556 sprintf(buff+strlen(buff), "`%.50s' tag method", name);
554 break; 557 break;