diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-26 15:35:13 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-11-26 15:35:13 -0200 |
| commit | 93695db90382fc00b054e1db177985d6a8fa1609 (patch) | |
| tree | 8df7c1c819d02cd5bc35e205c5d639a812e24406 /luaconf.h | |
| parent | 9107dd115ce2ddf6cee2610daffaf7fb29133d9f (diff) | |
| download | lua-93695db90382fc00b054e1db177985d6a8fa1609.tar.gz lua-93695db90382fc00b054e1db177985d6a8fa1609.tar.bz2 lua-93695db90382fc00b054e1db177985d6a8fa1609.zip | |
'table.maxn' deprecated
Diffstat (limited to 'luaconf.h')
| -rw-r--r-- | luaconf.h | 13 |
1 files changed, 9 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.117 2009/11/26 11:39:20 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.118 2009/11/26 16:49:28 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 | */ |
| @@ -336,9 +336,8 @@ | |||
| 336 | 336 | ||
| 337 | /* | 337 | /* |
| 338 | @@ LUA_COMPAT_FENV controls the presence of functions 'setfenv/getfenv'. | 338 | @@ LUA_COMPAT_FENV controls the presence of functions 'setfenv/getfenv'. |
| 339 | ** CHANGE it (undefine it) if as soon as you rewrite your code to | 339 | ** CHANGE it (define it) if you need these functions. (You can replace |
| 340 | ** avoid using those functions. (You can replace them with lexical | 340 | ** them with lexical environments, 'loadin', or the debug library.) |
| 341 | ** environments, 'loadin', or the debug library.) | ||
| 342 | */ | 341 | */ |
| 343 | /* #define LUA_COMPAT_FENV */ | 342 | /* #define LUA_COMPAT_FENV */ |
| 344 | 343 | ||
| @@ -350,6 +349,12 @@ | |||
| 350 | #define LUA_COMPAT_LOG10 | 349 | #define LUA_COMPAT_LOG10 |
| 351 | 350 | ||
| 352 | /* | 351 | /* |
| 352 | @@ LUA_COMPAT_MAXN defines the function 'maxn' in the table library. | ||
| 353 | ** CHANGE it (define it) if you need that function. | ||
| 354 | */ | ||
| 355 | /* #define LUA_COMPAT_MAXN */ | ||
| 356 | |||
| 357 | /* | ||
| 353 | @@ LUA_COMPAT_API includes some macros and functions that supply some | 358 | @@ LUA_COMPAT_API includes some macros and functions that supply some |
| 354 | @* compatibility with previous versions. | 359 | @* compatibility with previous versions. |
| 355 | ** CHANGE it (undefine it) if you do not need these compatibility facilities. | 360 | ** CHANGE it (undefine it) if you do not need these compatibility facilities. |
