K&R-style variadic functions
Jacob Carlborg
doob at me.com
Mon Jul 16 23:56:17 PDT 2012
To my understanding this is legal C :
int foo ();
It's a K&R-style variadic functions, while their use is discouraged,
they're still legal C.
If I, in D, declare a variadic function with C linkage that doesn't
take, at least, one regular parameter the compiler will complain.
extern (C) int foo (...);
Error: variadic functions with non-D linkage must have at least one
parameter
Does that mean I can't use a function like this from D?
I'm trying to figure out what my tool, DStep, should do when it
encounters a function like this.
https://github.com/jacob-carlborg/dstep
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list