trampoline_call
Calls through a trampoline.
Syntax
trampoline_call(target: any, ...) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
target | any | The function or object being targeted. |
... | ... | Additional arguments forwarded to the target. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
trampoline_call 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 operation is performed immediately using the arguments supplied at the call site.
Example
trampoline_call(print, "hello from the trampoline")
Notes
- Raw hooks bypass closure-level safety; always keep the returned handle so you can unhook.