diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-08-30 16:16:02 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-08-30 16:16:02 -0300 |
| commit | 0b73ed8f083c99b5ff88e0822532db7ad8785881 (patch) | |
| tree | 20a55b291a0ec5ee68fa40807dadd5bae6157d1a | |
| parent | f87416f1a3e47aa69ed8d27e7406ec6b7848da9a (diff) | |
| download | lua-0b73ed8f083c99b5ff88e0822532db7ad8785881.tar.gz lua-0b73ed8f083c99b5ff88e0822532db7ad8785881.tar.bz2 lua-0b73ed8f083c99b5ff88e0822532db7ad8785881.zip | |
Allows LUA_32BITS to be defined externally
An external definition for LUA_32BITS can change the API, but libraries
check number-format compatibility when loading. So, any incompatible
modules will report a clear error.
| -rw-r--r-- | luaconf.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -138,7 +138,7 @@ | |||
| 138 | /* | 138 | /* |
| 139 | @@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats. | 139 | @@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats. |
| 140 | */ | 140 | */ |
| 141 | #define LUA_32BITS 0 | 141 | /* #define LUA_32BITS */ |
| 142 | 142 | ||
| 143 | 143 | ||
| 144 | /* | 144 | /* |
| @@ -153,7 +153,7 @@ | |||
| 153 | #endif | 153 | #endif |
| 154 | 154 | ||
| 155 | 155 | ||
| 156 | #if LUA_32BITS /* { */ | 156 | #if defined(LUA_32BITS) /* { */ |
| 157 | /* | 157 | /* |
| 158 | ** 32-bit integers and 'float' | 158 | ** 32-bit integers and 'float' |
| 159 | */ | 159 | */ |
