hookfunction for C functions, and it exposes the machinery around the hook so a callback can tell where it is running.
oth
oth
Thread-based hooking for C closures.
The oth library hooks C closures by routing their calls through a Luau callback on a dedicated thread. It is a more surgical alternative to