Hooking Functions
Hook Function
<function> hookfunction(<function> old, <function> hook)
Hooks function old
, replacing it with the function hook
. The old function is returned, you must use this function in order to call the original function.
New C Closure
<function> newcclosure(<function> f)
Pushes a new CClosure that invokes function f
upon call. Used for metatable hooks.