[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Is it possible to send var-args (...) to a native function?
- From: Charles Curran <smokeandmirrorsdevelopment@...>
- Date: Mon, 7 Feb 2011 12:48:05 -0500
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);
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?