[Lua] 怎么返回一个table给C程序
[Lua] 如何返回一个table给C程序?fuction Test()NpkData {signal 1,id 2,name abc,hp 1000,mp
[Lua] 如何返回一个table给C程序?
fuction Test()
NpkData =
{
signal = 1,
id = 2,
name = "abc",
hp = 1000,
mp = 2000,
}
end
请问lua如何把上面NpkData这个表返回给C程序??
除了依次返回表的每一个数据外,还有别的什么方法?
[解决办法]http://stackoverflow.com/questions/12096281/how-to-have-a-lua-iterator-return-a-c-struct