lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.