diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-16 13:51:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-16 13:51:03 -0200 |
commit | c5050b1c4124967f695a22021c5fedfec381774c (patch) | |
tree | b778612524b523b6e26300b0162285a1a67a83d3 /luaconf.h | |
parent | b9063a08f522a62a8fc3b282cd7782af3a30487d (diff) | |
download | lua-c5050b1c4124967f695a22021c5fedfec381774c.tar.gz lua-c5050b1c4124967f695a22021c5fedfec381774c.tar.bz2 lua-c5050b1c4124967f695a22021c5fedfec381774c.zip |
functions 'getfenv' and 'setfenv' are deprecated
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.111 2009/10/11 20:02:19 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.112 2009/10/23 12:31:12 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -329,6 +329,14 @@ | |||
329 | */ | 329 | */ |
330 | 330 | ||
331 | /* | 331 | /* |
332 | @@ LUA_COMPAT_FENV controls de presence of functions 'setfenv/getfenv'. | ||
333 | ** CHANGE it (undefine it) if as soon as you rewrite your code to | ||
334 | ** avoid using those functions. (You can replace them with lexical | ||
335 | ** environments, 'loadin', or the debug library.) | ||
336 | */ | ||
337 | /* #define LUA_COMPAT_FENV */ | ||
338 | |||
339 | /* | ||
332 | @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library. | 340 | @@ LUA_COMPAT_LOG10 defines the function 'log10' in the math library. |
333 | ** CHANGE it (undefine it) if as soon as you rewrite all calls 'log10(x)' | 341 | ** CHANGE it (undefine it) if as soon as you rewrite all calls 'log10(x)' |
334 | ** as 'log(x, 10)' | 342 | ** as 'log(x, 10)' |