[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is it possible to send var-args (...) to a native function?
- From: Florian Weimer <fw@...>
- Date: Mon, 07 Feb 2011 19:45:39 +0100
* Charles Curran:
> I've run into a surprise in the C API. I have this code in Lua:
> but when I try and operate on the arguments in C++
> int construct(lua_State* L)
> int stack_size = lua_gettop(L);
> return 0;
> the value of stack_size here is 0, no matter how many arguments are passed
> into the function construct in Lua. Is it not possible to process var-args
> from the C API?
It is. Could you post a minimal, complete example which exhibits the