[fpc-pascal] {$DEFINE DEVEL}
Tony Whyman
tony.whyman at mccallumwhyman.com
Wed Oct 11 11:02:13 CEST 2017
Try adding a space between the { and $ e.g.
{ $DEFINE DEVEL}
FPC then ignores the define
On 11/10/17 10:00, pascalX at piments.com wrote:
> Hi ,
>
> I had a little trick that I used on BP and Delphi code that does not
> work on Lazarus.
>
> I define compiler variable which I could toggle on and off by adding a
> second opening curly bracket, since the define only works if the line
> starts {$
>
>
> {$DEFINE DEVEL}
>
>
> If I start the line {{$ Delphi ignores it but Lazarus then highlights
> the rest of the code as a comment and it fails to compile.
>
> main.pas(172,1) Warning: Comment level 2 found
>
>
> Is this a bug or a feature?
>
> Can anyone suggest a similar one key trick ?
>
> thx
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list