diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-24 16:33:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-24 16:33:29 -0300 |
commit | f9037ae8c1ccb614e38cb56054927aef6203cfd9 (patch) | |
tree | 658f5d707b03c1b04258165db15544f5cbd52775 /luaconf.h | |
parent | 57d842414670769fff8ad045693dcbf1018c59c1 (diff) | |
download | lua-f9037ae8c1ccb614e38cb56054927aef6203cfd9.tar.gz lua-f9037ae8c1ccb614e38cb56054927aef6203cfd9.tar.bz2 lua-f9037ae8c1ccb614e38cb56054927aef6203cfd9.zip |
'ipairs' respects metamethods
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.210 2014/07/17 13:53:37 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.211 2014/07/24 14:00:16 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 | */ |
@@ -305,6 +305,11 @@ | |||
305 | #define LUA_COMPAT_BITLIB | 305 | #define LUA_COMPAT_BITLIB |
306 | 306 | ||
307 | /* | 307 | /* |
308 | @@ LUA_COMPAT_IPAIRS controls the effectivness of the __ipairs metamethod. | ||
309 | */ | ||
310 | #define LUA_COMPAT_IPAIRS | ||
311 | |||
312 | /* | ||
308 | @@ LUA_COMPAT_APIUNSIGNED controls the presence of macros for | 313 | @@ LUA_COMPAT_APIUNSIGNED controls the presence of macros for |
309 | ** manipulating unsigned integers (lua_pushunsigned, lua_tounsigned, etc.) | 314 | ** manipulating unsigned integers (lua_pushunsigned, lua_tounsigned, etc.) |
310 | */ | 315 | */ |