name "_ENV" configurable through 'luaconf.h'

This commit is contained in:
Roberto Ierusalimschy
2010-09-07 16:21:39 -03:00
parent 6828f6d427
commit 0df2238063
7 changed files with 23 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: loadlib.c,v 1.89 2010/07/28 15:51:59 roberto Exp roberto $
** $Id: loadlib.c,v 1.90 2010/08/02 17:14:48 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@@ -496,7 +496,7 @@ static int ll_require (lua_State *L) {
#if defined(LUA_COMPAT_MODULE)
/*
** changes the _ENV variable of calling function
** changes the environment variable of calling function
*/
static void set_env (lua_State *L) {
lua_Debug ar;