7 lines
810 B
Lua
7 lines
810 B
Lua
---@diagnostic disable: missing-return, lowercase-global
|
|
|
|
---@param func string
|
|
---@param hookfunc function
|
|
---Add a function to be called after execution of a secure function. Allows one to "post-hook" a secure function without tainting the original. The original function will still be called, but the function supplied will be called after the original, with the same arguments. Return values from the supplied function are discarded. Note that there is no API to remove a hook from a function: any hooks applied will remain in place until the UI is reloaded. Only allows hooking of functions named by a global variable; to hook a script handler on a Frame object, see Frame:HookScript().
|
|
---@overload fun(table: table, function: string, hookfunc: function): void
|
|
function hooksecurefunc(func, hookfunc) end |