lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Any application that has its own copy of Lua 5.3 should take into
> consideration the ideal size for lua_Number and for lua_Integer. All
> it takes is one single line in 'luaconf.h';

It's the explanation starting at `@@ LUA_INT_INT`.

You can choose one of each:
	#define LUA_INT_INT 
	#define LUA_INT_LONG 
	#define LUA_INT_LONGLONG

	#define LUA_REAL_FLOAT 
	#define LUA_REAL_DOUBLE 
	#define LUA_REAL_LONGDOUBLE

The default is 
	#define LUA_INT_LONGLONG
	#define LUA_REAL_DOUBLE

So, it's two lines :-)

But you can define LUA_32BITS to get 32-bit integers and 'float' and
LUA_C89_NUMBERS to get 'long' and 'double, which was the traditional
combination before 5.3.