From 4f4e0e49bbb72aaeb6ef11ed43d6c0957a80eb9c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Oct 2014 09:55:44 -0300 Subject: easier way to compile Lua 32 --- luaconf.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index 1cf7a9a8..b0f265fc 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.213 2014/08/01 17:33:08 roberto Exp roberto $ +** $Id: luaconf.h,v 1.214 2014/10/01 11:54:56 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -29,11 +29,20 @@ ** These definitions set the numeric types for Lua. Lua should work ** fine with any mix of these previous options. ** The usual configurations are 64-bit integers and floats (the default) -** and 32-bit integers and floats (Small Lua, for restricted hardware). +** and 32-bit integers and floats (Lua 32, for restricted hardware). ** ===================================================================== */ + +/* just uncomment the next line for Lua 32 */ +/* #define LUA_32 */ + +#if !defined(LUA_32) #define LUA_INT_LONGLONG #define LUA_REAL_DOUBLE +#else /* Lua 32 bits */ +#define LUA_INT_LONG +#define LUA_REAL_FLOAT +#endif /* @@ -306,7 +315,7 @@ #define LUA_COMPAT_BITLIB /* -@@ LUA_COMPAT_IPAIRS controls the effectivnness of the __ipairs metamethod. +@@ LUA_COMPAT_IPAIRS controls the effectiveness of the __ipairs metamethod. */ #define LUA_COMPAT_IPAIRS -- cgit v1.2.3-55-g6feb