문법
별칭
hookfuncreplaceclosuredetourfunctiondetour_function
target function를 replacement function로 hook하고 original target closure의 cloned copy를 반환합니다. 두 arguments는 모두 functions여야 합니다. function은 먼저 pending C function swaps를 flush하고, function cloning으로 target을 cloning하고, replacement closure 또는 mapped newcclosure target을 hidden stack tracking에 추가하고, target 및 cloned original에 대해 FixCallstack을 호출한 다음, C closure, Luau closure 또는 newcclosure-specific path를 통해 target closure를 patch합니다. target이 아직 hook records에 없으면 restorefunction을 위해 cloned original이 거기에 저장됩니다. returned function은 cloned original closure입니다.
hookfuncreplaceclosuredetourfunctiondetour_function