lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 93bcb65a9ba2296818abdbfc800bbc1b9ed3b127
parent 49c95648a003ea75577c1292c4530cdb798eac02
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  4 Apr 2002 14:21:09 -0300

debug interface uses `method' to describe calls like `a:foo()'

Diffstat:
Mldebug.c | 8+++++---
Mluadebug.h | 4++--
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git 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; diff --git a/luadebug.h b/luadebug.h @@ -1,5 +1,5 @@ /* -** $Id: luadebug.h,v 1.25 2002/03/11 12:45:00 roberto Exp roberto $ +** $Id: luadebug.h,v 1.26 2002/03/14 16:50:06 roberto Exp roberto $ ** Debugging API ** See Copyright Notice in lua.h */ @@ -30,7 +30,7 @@ LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func); struct lua_Debug { const char *event; /* `call', `return', `line' */ const char *name; /* (n) */ - const char *namewhat; /* (n) `global', `tag method', `local', `field' */ + const char *namewhat; /* (n) `global', `local', `field', `method' */ const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ const char *source; /* (S) */ int currentline; /* (l) */