Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Creates a secure 'post hook' for the named function. The hookfunc is invoked after the original function, and receives the same parameters. Return values from hookfunc are discarded. This is the only safe way to hook functions that execute protected functionality.
hooksecurefunc([table,] "functionName", hookfunc)
Takes
- table
- table which functionName exists on
- "functionName"
- the name of the function being hooked
- hookfunc
- the hook function
Returns
- Nothing
Details
- After hooksecurefunc() is used on a function, setfenv() throws an error when attempted on that function