[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Hacking Lua for debug information
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 21 Mar 2012 20:22:55 -0300
> 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