lua-users home
lua-l archive

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


On Friday, March 8, 2002, at 09:56  AM, Roberto Ierusalimschy wrote:
i have trouble compiling the above named version on MacOSX 10.1.2,
[...]
The only thing I can think of is some problem with macro-expansion (we
had some macro-expansion problems with Visual-C, some time ago, related
with the "G" macro). Can you try to check the result of your cpp over
those lines?
-- Roberto

I ran into this same problem and replaced the _G global state variable in the lua_State structure with a member called, oddly, globalState. I changed the macro that references it and the very few places in the code that use it and every thing was good again. Why it dies with such a misleading error message I don't know.

Guy