<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>I need to translate this: #define mymalloc(x,y) (x*)malloc((y)* sizeof(x))</p>
<p> </p>
<p>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)?</p>
<p> </p>
<p>Regards, Darius</p>
<div> </div>
</body></html>