From c5050b1c4124967f695a22021c5fedfec381774c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 16 Nov 2009 13:51:03 -0200 Subject: functions 'getfenv' and 'setfenv' are deprecated --- luaconf.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index bb6077c5..c58ec718 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.111 2009/10/11 20:02:19 roberto Exp roberto $ +** $Id: luaconf.h,v 1.112 2009/10/23 12:31:12 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -328,6 +328,14 @@ ** =================================================================== */ +/* +@@ LUA_COMPAT_FENV controls de presence of functions 'setfenv/getfenv'. +** CHANGE it (undefine it) if as soon as you rewrite your code to +** avoid using those functions. (You can replace them with lexical +** environments, 'loadin', or the debug library.) +*/ +/* #define LUA_COMPAT_FENV */ + /* @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library. ** CHANGE it (undefine it) if as soon as you rewrite all calls 'log10(x)' -- cgit v1.2.3-55-g6feb