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' --- luaconf.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index ad4e65f9..1b881475 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.141 2010/07/25 15:02:41 roberto Exp roberto $ +** $Id: luaconf.h,v 1.142 2010/07/28 15:51:59 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -115,6 +115,14 @@ #endif +/* +@@ LUA_ENV is the name of the variable that holds the current +@@ environment, used to access global names. +** CHANGE it if you do not like this name. +*/ +#define LUA_ENV "_ENV" + + /* @@ LUA_API is a mark for all core API functions. @@ LUALIB_API is a mark for all auxiliary library functions. -- cgit v1.2.3-55-g6feb