hookmetamethod
This function takes any lua value that can have metatable and attempts to hook the specified metamethod of the lua value with the hookfunction
function.
Function can be safely implemented in Lua if hookfunction
is properly implemented in C code.
Parameter
object - The object which has the metatable
methodmethod_name - The name of the metamethod to hook.
hook - The function that will be used as a hook
Example
Last updated