aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-09-07 16:21:39 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-09-07 16:21:39 -0300
commit0df2238063f3e5b1a12c5272484f2afd45a2a2f1 (patch)
tree04361bb15edb5dbeba28ecd0103a0f29807112ad /ldebug.c
parent6828f6d42786de735d6696da8cccbb47c8bad347 (diff)
downloadlua-0df2238063f3e5b1a12c5272484f2afd45a2a2f1.tar.gz
lua-0df2238063f3e5b1a12c5272484f2afd45a2a2f1.tar.bz2
lua-0df2238063f3e5b1a12c5272484f2afd45a2a2f1.zip
name "_ENV" configurable through 'luaconf.h'
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 fcead7ce..01aab131 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.71 2010/06/16 13:44:36 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.72 2010/06/21 16:30:12 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*/
@@ -315,7 +315,7 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg,
315 ? luaF_getlocalname(p, t + 1, pc) 315 ? luaF_getlocalname(p, t + 1, pc)
316 : getstr(p->upvalues[t].name); 316 : getstr(p->upvalues[t].name);
317 kname(p, k, a, what, name); 317 kname(p, k, a, what, name);
318 what = (vn && strcmp(vn, "_ENV") == 0) ? "global" : "field"; 318 what = (vn && strcmp(vn, LUA_ENV) == 0) ? "global" : "field";
319 } 319 }
320 break; 320 break;
321 } 321 }