Pārlūkot izejas kodu

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.
Roberto Ierusalimschy 1 nedēļu atpakaļ
vecāks
revīzija
0b73ed8f08
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      luaconf.h

+ 2 - 2
luaconf.h

@@ -138,7 +138,7 @@
 /*
 @@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats.
 */
-#define LUA_32BITS	0
+/* #define LUA_32BITS */
 
 
 /*
@@ -153,7 +153,7 @@
 #endif
 
 
-#if LUA_32BITS		/* { */
+#if defined(LUA_32BITS)	/* { */
 /*
 ** 32-bit integers and 'float'
 */