Re: use of c ellipsis
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: use of c ellipsis
- From: William Ahern <william@...>
- Date: 2014年2月26日 12:12:41 -0800
On Tue, Feb 25, 2014 at 06:30:37PM -0800, Jim Rambo wrote:
>
> Hello,
> I am trying to port lua to another architecture that is basically ansi
> c. However, the ellipsis is not supported. I cut out all the extra
> libraries but have even found that the ellipsis is used in the core.
> Any ideas? The remaining obstacle seems to be centered around the
> various pushstring functions.
> Regards,
> Jim
Maybe you could try declaring the function without any parameters:
int foo();
And in the definition, remove the ellipsis and use va_start, etc, as normal.
It might work, but it all depends on the ABI the compiler uses.