[fpc-pascal] Functions with variable number of parameters

Florian Klaempfl florian at freepascal.org
Mon Jul 10 23:32:51 CEST 2006


Felipe Monteiro de Carvalho wrote:
> Hello,
> 
> While writing the apache pascal headers, I need to convert a c
> function like this:
> 
> void ap_allow_methods(request_rec *r, int reset, ...);
> 
> I know we can implement a variable number of paramaters in pascal
> using array of const type. But is that type compatible with a C
> function with a variable number of parameters?

Use array of const with cdecl, it will work as expected.

> 
> I mean, will it work when calling a function written in c in a DLL?


> 
> If not, what should I do?
> 
> thanks,




More information about the fpc-pascal mailing list