[fpc-devel] constref in Windows

Paul Ishenin webpirat at mail.ru
Sat Nov 20 12:21:26 CET 2010


20.11.2010 17:53, Jonas Maebe wrote:
> Also, the default calling convention on non-x86 platforms is supposed 
> to be compliant with the default ABI of the platform. Many of these 
> platforms pass small records all by value (const or not).

Const is a pascal keyword which can mean for pascal "pass records by 
reference". If you need to pass a record by value to some system C 
routine then don't mark that argument as const during the header 
convertion. What is wrong?

Best regards,
Paul Ishenin.



More information about the fpc-devel mailing list