diff options
Diffstat (limited to '')
| -rw-r--r-- | ldebug.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldebug.c,v 2.74 2010/10/11 20:24:42 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.75 2010/11/30 17:17:51 roberto Exp roberto $ |
| 3 | ** Debug Interface | 3 | ** Debug Interface |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -325,7 +325,7 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg, | |||
| 325 | if (reg == a) { | 325 | if (reg == a) { |
| 326 | int k = GETARG_C(i); /* key index */ | 326 | int k = GETARG_C(i); /* key index */ |
| 327 | int t = GETARG_B(i); | 327 | int t = GETARG_B(i); |
| 328 | const char *vn = (op == OP_GETTABLE) /* name of indexed variable */ | 328 | const char *vn = (op == OP_GETTABLE) /* name of indexed variable */ |
| 329 | ? luaF_getlocalname(p, t + 1, pc) | 329 | ? luaF_getlocalname(p, t + 1, pc) |
| 330 | : getstr(p->upvalues[t].name); | 330 | : getstr(p->upvalues[t].name); |
| 331 | kname(p, k, a, what, name); | 331 | kname(p, k, a, what, name); |
| @@ -468,7 +468,7 @@ void luaG_typeerror (lua_State *L, const TValue *o, const char *op) { | |||
| 468 | const char *kind = NULL; | 468 | const char *kind = NULL; |
| 469 | if (isLua(ci)) { | 469 | if (isLua(ci)) { |
| 470 | kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */ | 470 | kind = getupvalname(ci, o, &name); /* check whether 'o' is an upvalue */ |
| 471 | if (!kind && isinstack(ci, o)) /* no? try a register */ | 471 | if (!kind && isinstack(ci, o)) /* no? try a register */ |
| 472 | kind = getobjname(L, ci, cast_int(o - ci->u.l.base), &name); | 472 | kind = getobjname(L, ci, cast_int(o - ci->u.l.base), &name); |
| 473 | } | 473 | } |
| 474 | if (kind) | 474 | if (kind) |
