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: 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.