Foo() 可以创建一个c++对象, 并返回给lua一个对象的引用ref ... “Foo”); lua_setmetatable(L, -2); // 5. tt[0] = userdata lua_pushnumber(L, 0); ...
確定! 回上一頁