[fpc-devel] FPC conditionals

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Nov 26 14:04:53 CET 2009


On Thu, 26 Nov 2009 13:51:33 +0100
Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:

> 
> On 26 Nov 2009, at 13:41, Mattias Gaertner wrote:
> 
> > Allowed:
> > 1+1<3
> >
> > Not allowed:
> > (1+1)<3
> >
> > Are brackets not supported?
> > Maybe only in some modes?
> 
> I doubt it. The preprocessor parser is very limited and completely  
> separate from the regular parser. I think that it's in compiler/ 
> scanner.pas, function parse_compiler_expr.
> 
> Disclaimer: I've never modified that code myself and don't know  
> anything about it.

Thanks. I searched scanner, but didn't found that proc.

Hmm. It has hasKlammer. Maybe it supports some brackets ...


Mattias



More information about the fpc-devel mailing list