Original Post
Hi,
Let's say i have the following lua function:
How can i read all the arguments, and the values in the table in c++ ?
Also, the table is of dynamic length, how could i read the length of table in c++?
this would be my function in c++
Let's say i have the following lua function:
setColor(5,{2,58,100})How can i read all the arguments, and the values in the table in c++ ?
Also, the table is of dynamic length, how could i read the length of table in c++?
this would be my function in c++
int setColor(lua_State *L){ int b = lua_tointeger(L,1); // read first argument // now read the table and length of table????}