calling C variadic arguments with no 'argc' and only variadic arguments

Laeeth Isharc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 18 10:44:56 PDT 2015


On Wednesday, 18 March 2015 at 05:38:40 UTC, Ali Çehreli wrote:
> On 03/17/2015 06:13 PM, Laeeth Isharc wrote:
>
> > DMD gave me an error message for the following declarations:
> >
> > double mgl_rnd (...);
> > double mgl_rnd_ (...);
>
> Are you sure those are the right signatures? I don't think 
> those functions take any parameters at all. I would try these:
>
> double mgl_rnd ();
> double mgl_rnd_ ();
>
> Ali

My mistake.  Dstep got confused in the translation and wrote the 
sig as ...and I was tired and didnt check.  Thanks for looking 
into it.


More information about the Digitalmars-d-learn mailing list