[fpc-pascal] Variable argument list for cdecl functions

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Apr 14 14:52:04 CEST 2011

On 14 Apr 2011, at 14:49, Wimpie Nortje wrote:

> How do one access the array of const members for a function declared  
> as
> cdecl? Eg.
> function A(args: array of const): integer;cdecl;

You can't. Development FPC versions refuse to compile the above  
declaration. It was a bug in previous versions that it didn't: http://wiki.freepascal.org/User_Changes_Trunk#Array_of_const_parameters_and_cdecl_routines


More information about the fpc-pascal mailing list