1 如何封装c++的指针对于c++对象的lua包装,我们可以使用 template struct ... lua_setmetatable( L, -2 )则把新生成的userdata的metatable设置为ObjectMetatable。
確定! 回上一頁