[fpc-pascal] using macros

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Mon Oct 1 16:21:04 CEST 2012


I need to translate this: #define mymalloc(x,y) (x*)malloc((y)*

Is it possible using macro's in FPC or do I need to convert
it to a procedure? How would I cast the pointer in the latter case
(without having to change the sourcecode significantly)? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121001/5aa93b7d/attachment.html>

More information about the fpc-pascal mailing list