Re: [fpc-pascal] Variable argument list for cdecl functions

2011-04-14 Thread Jonas Maebe
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 version

[fpc-pascal] Variable argument list for cdecl functions

2011-04-14 Thread Wimpie Nortje
Hi How do one access the array of const members for a function declared as cdecl? Eg. function A(args: array of const): integer;cdecl; I get a warning that cdecl'ared functions have no high parameter, which now makes sense to me since I tried to use High(args) ___