oth.get_root_callback
Returns the root callback or original thread.
Syntax
oth.get_root_callback(handle: any) -> thread
Parameters
| Parameter | Type | Description |
|---|---|---|
handle | any | The handle value used by the call. |
Returns
| Type | Description |
|---|---|
thread | The root callback or original thread |
Description
oth.get_root_callback is part of the Oth library. Oth works at the raw hook layer. It installs function hooks, exposes their handles and provides trampoline calls.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
The aliases oth.get_original_thread(handle) resolve to the same implementation.
Example
local handle = oth.hook(print, function() end)
print(oth.get_root_callback(handle))
print(oth.get_original_thread(handle))
Notes
- Aliases:
oth.get_original_thread(handle). - Raw hooks bypass closure-level safety; always keep the returned handle so you can unhook.