You have to set the metatable to your table by pushing it to the top of the stack and then calling lua_setmetatable . luaL_newlib(lua, lib); ...
確定! 回上一頁