メインコンテンツへスキップ

エイリアス

  • hookfunc
  • replaceclosure
  • detourfunction
  • detour_function

引数

function
必須
patch する Function。non-function を渡すと type error が発生します。
function
必須
function が target に install または map される Function。non-function を渡すと type error が発生します。

戻り値

function
hook が install される前に作成された original target closure の cloned copy。

例

Patch a function closure and keep a cloned original.