I would like to know how I can pass a parameter table from a lua function to a C function. I found some example but they didn't explain how we can get back our table in our C function. If we pass a number from lua to C, we use luaL_checkint it's simple. But we can not doing the same thing with table.
For example in my lua function I call a C function like that :
local a, b= library.executeDiagRequestOnChannel(test,test2)
where library is my new library for my embedded system functions, test and test 2 are two tables, and executeDiagRequestOnChannel
is a function of my library.
In my C file, I have the function :
static long executeDiagRequestOnChannel(lua State *L){}
and I want in this fonction do operation on my tables test and test2 and sent back after to lua function the result.