[fpc-pascal] Using C functions

Ivo Steinmann ivo_steinmann at gmx.net
Sat Nov 21 21:59:27 CET 2009


Wimpie Nortje schrieb:
>
>
> Jonas Maebe wrote:
>> On 21 Nov 2009, at 20:16, Wimpie Nortje wrote:
>>
>>   
>>> Is there any way to use a C library that use the __fastcall calling convention?
>>>     
>>
>> Not at this time. Also note that that the fastcall convention is not standardised and varies between different C compilers.
>>
>>   
> Thanks, I thought so.
>
> I am considering to write a C library (cdecl) to wrap the calls to the 
> C library(fastcall), but it doesn't feel right.
> ------------------------------------------------------------------------
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
it's better to do it this way instead relying on something not 
standardised...



More information about the fpc-pascal mailing list