C遍历lua的table
摘要:假设table的在stack中的索引位置为index,现在从C代码里面对这个lua的table进行遍历,方法如下:方法1、当index为正值的时候,可用如下代码:注意:t>0void printtb(lua_State *L,int index){ /* table is in the stack ...
阅读全文
posted @ 2013-11-18 14:21
posted @ 2013-11-18 14:21