[fpc-devel] MACRO - correct syntax?

Sven Barth pascaldragon at googlemail.com
Sun Feb 25 09:17:26 CET 2018


Am 25.02.2018 03:01 schrieb "Ozz Nixon" <ozznixon at gmail.com>:


{$MACRO ON}

{$DEFINE _CTASSERT(X,Y,Z):=assert(x=y,z);}

Begin
   _CTASSERT(1,1,'Constant failed.');
end.


Macros with arguments are not supported.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180225/9d6a9262/attachment.html>


More information about the fpc-devel mailing list