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

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)? 

Regards,
Darius 
  
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to