From f9037ae8c1ccb614e38cb56054927aef6203cfd9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 24 Jul 2014 16:33:29 -0300 Subject: 'ipairs' respects metamethods --- luaconf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 6edc0e4e..07e98a5d 100644 --- a/luaconf.h +++ b/luaconf.h @@ -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.) -- cgit v1.2.3-55-g6feb