'ipairs' respects metamethods

This commit is contained in:
Roberto Ierusalimschy
2014-07-24 16:33:29 -03:00
parent 57d8424146
commit f9037ae8c1
3 changed files with 49 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.210 2014/07/17 13:53:37 roberto Exp roberto $
** $Id: luaconf.h,v 1.211 2014/07/24 14:00:16 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -304,6 +304,11 @@
*/
#define LUA_COMPAT_BITLIB
/*
@@ LUA_COMPAT_IPAIRS controls the effectivness of the __ipairs metamethod.
*/
#define LUA_COMPAT_IPAIRS
/*
@@ LUA_COMPAT_APIUNSIGNED controls the presence of macros for
** manipulating unsigned integers (lua_pushunsigned, lua_tounsigned, etc.)