Fix up hooksecure and createmacro

This commit is contained in:
2025-01-02 00:14:47 +01:00
parent d80cfb5bdf
commit 7e275c572b
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global
---@param table table
---@param function string
---@param hookfunc function
---@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().
function hooksecurefunc(table, function, hookfunc) end
---@overload fun(table: table, function: string, hookfunc: function): void
function hooksecurefunc(func, hookfunc) end