I am using Visual C++ 2012 and trying to write a c extension for Lua. Currently I am design a function prototype:
lib.myfunc(number, {a=1,b=2,c=3},{d=4,e=5,...})
There are 3 parameters for 'myfunc' function, the 1st parameter is a number of integer, the 2nd and 3rd parameters are table type, and I need to access the values by keys(the keys are 'a','b','c'...)
I've read the lua manual and googled for many tutorials but I still cannot get it work. I want a sample C code doing this job, thank you~