您应该检查luaL_newmetatable 的返回只需注册一次元方法。 您可以更换 luaL_setmetatable 来自 luaL_newmetatable ,因此您的代码与Lua 5.1 兼容,您可以将元表注册嵌入到 ...
確定! 回上一頁