oth
Install, inspect, and remove OTH function hooks. Hook filters can limit which calls reach each hook.
Functions
oth.get_original_threadRead the coroutine that made the intercepted call from inside an OTH callback. Use it when callback diagnostics need to identify the caller.
oth.get_root_callbackGet the original function bridge from inside an OTH callback. Call it when you need to bypass every installed hook layer.
oth.hookAdd a hook layer to a C closure. Its optional filter selects which calls reach this layer; misses continue to earlier layers or the original.
oth.is_hook_threadReport whether the current coroutine is running an OTH callback. Use it to distinguish callback work from ordinary script work.
oth.unhookRemove one OTH hook layer from a target. Select a specific layer when several callbacks have been installed.