必须使用luaL_newmetatable创建的表才能作为userdata的metatable。 在openlib函数中,添加一个userdata 的metatable表, int OnOpenlib( lua_State* L )
確定! 回上一頁