You can replace luaL_setmetatable by luaL_newmetatable , so your code is compatible to Lua 5.1, you can embed the metatable registration ...
確定! 回上一頁