aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-13 12:55:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-13 12:55:42 -0300
commit22ef84b6c8d980eb869f414610f8ff5f25568ca7 (patch)
tree150de147a765e98015bfd4e8cd67f8bf3f157ef3 /ldebug.c
parent63a2b62468d2aabb1086a8c88d32ff96c658c96b (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 898efe53..08560acd 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -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 }