diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-13 12:55:42 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-13 12:55:42 -0300 |
| commit | 22ef84b6c8d980eb869f414610f8ff5f25568ca7 (patch) | |
| tree | 150de147a765e98015bfd4e8cd67f8bf3f157ef3 /ldebug.c | |
| parent | 63a2b62468d2aabb1086a8c88d32ff96c658c96b (diff) | |
| download | lua-22ef84b6c8d980eb869f414610f8ff5f25568ca7.tar.gz lua-22ef84b6c8d980eb869f414610f8ff5f25568ca7.tar.bz2 lua-22ef84b6c8d980eb869f414610f8ff5f25568ca7.zip | |
'_ENV' name permanently stored in global state for easier access
Diffstat (limited to 'ldebug.c')
| -rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldebug.c,v 2.65 2010/03/05 14:01:29 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.66 2010/03/12 19:14:06 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 | */ |
| @@ -304,7 +304,7 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg, | |||
| 304 | ? luaF_getlocalname(p, t + 1, pc) | 304 | ? luaF_getlocalname(p, t + 1, pc) |
| 305 | : getstr(p->upvalues[t].name); | 305 | : getstr(p->upvalues[t].name); |
| 306 | kname(p, k, a, what, name); | 306 | kname(p, k, a, what, name); |
| 307 | what = (tabname && strcmp(tabname, "_ENV") == 0) ? "global" : "field"; | 307 | what = (tabname == getstr(G(L)->envn)) ? "global" : "field"; |
| 308 | } | 308 | } |
| 309 | break; | 309 | break; |
| 310 | } | 310 | } |
