Fix up hooksecure and createmacro
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
---@param name string
|
---@param name string
|
||||||
---@param iconTexture string
|
---@param iconTexture string
|
||||||
---@param body string
|
---@param body string
|
||||||
---@param perCharacter 1nil
|
---@param perCharacter number?
|
||||||
---@return number index
|
---@return number index
|
||||||
---Creates a new macro. Warning: Will throw an error if the quota of allowed macros is already met.
|
---Creates a new macro. Warning: Will throw an error if the quota of allowed macros is already met.
|
||||||
function CreateMacro(name, iconTexture, body, perCharacter) end
|
function CreateMacro(name, iconTexture, body, perCharacter) end
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
---@diagnostic disable: missing-return, lowercase-global
|
---@diagnostic disable: missing-return, lowercase-global
|
||||||
|
|
||||||
---@param table table
|
---@param func string
|
||||||
---@param function string
|
---@param hookfunc function
|
||||||
---@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().
|
---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
|
||||||
Reference in New Issue
Block a user