diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-03 09:55:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-03 09:55:44 -0300 |
commit | 4f4e0e49bbb72aaeb6ef11ed43d6c0957a80eb9c (patch) | |
tree | 57b680372dd690c8564585d900f1a181da9e9045 /luaconf.h | |
parent | 2f4d429071ef6c1fd372bf0bbdf48b09eb5741a9 (diff) | |
download | lua-4f4e0e49bbb72aaeb6ef11ed43d6c0957a80eb9c.tar.gz lua-4f4e0e49bbb72aaeb6ef11ed43d6c0957a80eb9c.tar.bz2 lua-4f4e0e49bbb72aaeb6ef11ed43d6c0957a80eb9c.zip |
easier way to compile Lua 32
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.213 2014/08/01 17:33:08 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.214 2014/10/01 11:54:56 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 | */ |
@@ -29,11 +29,20 @@ | |||
29 | ** These definitions set the numeric types for Lua. Lua should work | 29 | ** These definitions set the numeric types for Lua. Lua should work |
30 | ** fine with any mix of these previous options. | 30 | ** fine with any mix of these previous options. |
31 | ** The usual configurations are 64-bit integers and floats (the default) | 31 | ** The usual configurations are 64-bit integers and floats (the default) |
32 | ** and 32-bit integers and floats (Small Lua, for restricted hardware). | 32 | ** and 32-bit integers and floats (Lua 32, for restricted hardware). |
33 | ** ===================================================================== | 33 | ** ===================================================================== |
34 | */ | 34 | */ |
35 | |||
36 | /* just uncomment the next line for Lua 32 */ | ||
37 | /* #define LUA_32 */ | ||
38 | |||
39 | #if !defined(LUA_32) | ||
35 | #define LUA_INT_LONGLONG | 40 | #define LUA_INT_LONGLONG |
36 | #define LUA_REAL_DOUBLE | 41 | #define LUA_REAL_DOUBLE |
42 | #else /* Lua 32 bits */ | ||
43 | #define LUA_INT_LONG | ||
44 | #define LUA_REAL_FLOAT | ||
45 | #endif | ||
37 | 46 | ||
38 | 47 | ||
39 | /* | 48 | /* |
@@ -306,7 +315,7 @@ | |||
306 | #define LUA_COMPAT_BITLIB | 315 | #define LUA_COMPAT_BITLIB |
307 | 316 | ||
308 | /* | 317 | /* |
309 | @@ LUA_COMPAT_IPAIRS controls the effectivnness of the __ipairs metamethod. | 318 | @@ LUA_COMPAT_IPAIRS controls the effectiveness of the __ipairs metamethod. |
310 | */ | 319 | */ |
311 | #define LUA_COMPAT_IPAIRS | 320 | #define LUA_COMPAT_IPAIRS |
312 | 321 | ||