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 it to call the function further.
New C Closure
<function> newcclosure(<function> f)
Pushes a new CClosure that invokes function f
upon call. Used for metatable hooks.