From 93bcb65a9ba2296818abdbfc800bbc1b9ed3b127 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 4 Apr 2002 14:21:31 -0300 Subject: debug interface uses `method' to describe calls like `a:foo()' --- ldebug.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 323a5f7c..e69afafd 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.104 2002/03/22 16:54:31 roberto Exp roberto $ +** $Id: ldebug.c,v 1.105 2002/03/25 17:47:14 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -439,11 +439,13 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int stackpos, *name = kname(p, GETARG_C(i)); return "global"; } - /* else go through */ + *name = kname(p, GETARG_C(i)); + return "field"; + break; } case OP_SELF: { *name = kname(p, GETARG_C(i)); - return "field"; + return "method"; break; } default: break; -- cgit v1.2.3-55-g6feb