[fpc-devel] Compiler bug in macro handling?
Giuliano Colla
giuliano.colla at fastwebnet.it
Wed Apr 12 20:19:45 CEST 2017
Il 12/04/2017 19:54, Bernd Oppolzer ha scritto:
> I'm no FPC macro language wizard, but in my believe
> you are replacing Positiva with False, followed by a semicolon,
> and so you get the error from the compiler.
>
> {$define Positiva:=False}
>
> should probably work.
You are right, I was misled by some examples in the docs, but reading
more carefully, actually it states that the syntax is
{$define ident:=expr}
so that my semicolon is part of the define, and not a termination as I
had understood.
Thanks a lot.
Giuliano
More information about the fpc-devel
mailing list