[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Mysterious crash in patchlistaux() / getjump()
- From: Mike Pall <mikelu-1107@...>
- Date: Fri, 22 Jul 2011 20:33:59 +0200
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