Skip to main content

别名

  • debug.setmetatable

参数

any
必填
Value whose metatable is changed.
table | nil
必填
New metatable, or nil to clear the metatable. Other types raise “nil or table”.

返回值

any
The original target value.

示例

Set or clear a value’s metatable and receive the target back.