Sample here Calling lua functions from .lua's using handles? ... top S: 54321 lua_pushvalue(L,-1); // copy the metatable S: 554321 lua_setmetatable(L,-3); ...
確定! 回上一頁