How can a function with 'varargs' retrieve the contents of the stack?
Normally, in Delphi one would declare a function with a variable number of arguments using the 'array of const' method. However, for compatibility with code written in C, there's an much-unknown 'varargs' directive that can be added to a function declaration (I learned this while reading Rudy's excellent ' Pitfalls of convering ' document). As an example, one could have a function in C, declared like this : void printf(const char *fmt, ...) In Delphi, this would become : procedure printf(const fmt: PChar); varargs; My question is : How can I get to the contents of the stack when implementing a