Hooking Functions
Hook Function:
<function> hookfunction(<function> old, <function> new)  
- Hooks function 
old, replacing it with the functionnew. Theoldfunction is returned, you must use this function in order to call the original function. 
Hook Metamethod:
<function> hookmetamethod(<Object> object, <string> metamethod, <function> a1)  
- Hooks the 
metamethodpassed inobject's metatable witha1. 
New C Closure:
<function> newcclosure(<function> a1)  
- Pushes a new CClosure that invokes the function 
a1upon call.