From 0df2238063f3e5b1a12c5272484f2afd45a2a2f1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 7 Sep 2010 16:21:39 -0300 Subject: name "_ENV" configurable through 'luaconf.h' --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index fcead7ce..01aab131 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.71 2010/06/16 13:44:36 roberto Exp roberto $ +** $Id: ldebug.c,v 2.72 2010/06/21 16:30:12 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -315,7 +315,7 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg, ? luaF_getlocalname(p, t + 1, pc) : getstr(p->upvalues[t].name); kname(p, k, a, what, name); - what = (vn && strcmp(vn, "_ENV") == 0) ? "global" : "field"; + what = (vn && strcmp(vn, LUA_ENV) == 0) ? "global" : "field"; } break; } -- cgit v1.2.3-55-g6feb