Skip to main content

参数

any
必填
其 methods 由 raw metafield lookup 检查的 value。
string
必填
传给 raw metafield lookup 的 Metafield name。
function
必填
作为 found metamethod function 的 replacement 传给 hookfunction 的 Function。

返回值

function
hookfunction 返回的 cloned original metamethod closure。

示例

Hook an existing metamethod function.