Skip to content
Thread dispatchOverview

oth.is_hooked

Reports thread-dispatch interception state.

Details#

Checks whether a function has an active oth.hook interception. The result describes this dispatch mechanism, not every possible kind of function hook.

Examples#

Example

Luau
local target = newcclosure(function() return 1 end)
print(oth.is_hooked(target)) -- false