lua-users home
lua-l archive

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


It's easy to create a C function interfaced to lua that can take
variable arguments, as the C function just loops through the stack.
What I need to do is to be able to pass these popped lua values to a
variadic C function.  Does anybody know how to do this?  E.g. use lua to
call a variadic function via a binding function.  Note that I can't put
the lua interface inside the variadic function directly as I'm using an
API for which I only have the library, instead I have to create a C
binding that turns around and calls the variadic function.
Thanks,
Brett