lua-users home
lua-l archive

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


--- In lua-l@y..., Roberto Ierusalimschy <roberto@i...> 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

Great idea! Somehow "_G" is defined with 0x00000800L,
a simple

#define _G _G

inserted into the beginning of lstate.h solves the problem.

a pity that i don't know where _G is defined, because it isn't defined in a simple testfile, so it doesn't seem to be a predefined compiler-macro...

dom