[fpc-devel] Use of (* comment for $DEFINEd macros

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Thu Jan 19 20:10:12 CET 2012


On Thu, Jan 19, 2012 at 8:04 PM, Paul Robinson <paul at paul-robinson.us> wrote:
> --- Second Example ---
> {$MACRO ON }
> {*$DEFINE XX1:=' This is from Macro1' *)

This is wrong code. You cannot open a comment with { and close it with *)

(* matches *)
{ matches only }
{* means nothing special, it is a { comment opening followed by a
character * inside the comment.

-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list