lua-users home
lua-l archive

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


> After some digging i discovered that the LUA_NANTRICK_LE macro
> definition is indeed responsible (luaconf.h) for enabling the use of
> NaN-packed 8-byte TValues on 32 bit systems, but not on 64 bit
> systems. My test program on Windows was not being compiled with this
> macro defined.
> 
> Defining the LUA_NANTRICK_LE macro in my test program, and the use
> of the v_ macro to access the TValue struct, makes the test program
> work on Windows.

I guess it is safer to define LUA_CORE in your code, instead of
LUA_NANTRICK_LE. LUA_CORE is the macro that controls these
other internal macros. (You may need some others.)

-- Roberto