Skip to main content

别名

  • hookfunc
  • replaceclosure
  • detourfunction
  • detour_function

参数

function
必填
要 patch 的 Function。传入 non-function 会产生 type error。
function
必填
其 function 会 install 或 map 到 target 的 Function。传入 non-function 会产生 type error。

返回值

function
在 hook install 前创建的 original target closure 的 cloned copy。

示例

Patch a function closure and keep a cloned original.