在Lua C API程式設計上,經常有一些部落格會說,必須使用 luaL_newmetatable 和 ... __name = tname */ lua_pushvalue(L, -1); lua_setfield(L, ...
確定! 回上一頁