lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
> > 	const int INT_MAX = 0x7ffffff;
> > 
> > But then, luaconf was doing this:
> > 
> > 	#if INT_MAX-20 < 32760
> > 	#define LUAI_BITSINT	16
> > 
> > This of course was failing, because INT_MAX was not a macro.
> 
> What compiler/options were you using that did not warn you about
> an undefined macro being evaluated?

Undefined tokens in expressions for pre-processing directives are
replaced with 0 prior to evaluation. There's no reason to give a
warning here.

--Mike