Garry's Mod Wiki

Revision Difference

jit.util.ircalladdr#562001

<function name="util.ircalladdr" parent="jit" type="libraryfunc"> <description> <deprecated>This function was disabled due to security concerns. It will always return 0.</deprecated> ⤶ Gets the address of a function from a list of functions, for the list see <page>Ircalladdr Functions</page>⤶ <warning>This function isn't officially documented on LuaJIT wiki, use it at your own risk.</warning>⤶ <deprecated>This function was disabled due to security concerns.</deprecated> ⤶ Previously got the address of a function from a set list of functions, but now always returns `0` as it is deprecated.⤶ </description> <realm>Shared and Menu</realm> <args> <arg name="index" type="number">The index of the function address to get from the ircalladdr func array (starting from 0)</arg>⤶ <arg name="index" type="number">⤶ This arugment is ignored.⤶ </arg>⤶ </args> <rets> <ret name="" type="number">The address of the function.⤶ <note>⤶ It will return `0` if the index is reserved. ⤶ in the x86-64 versions the index is reserved up to 102. ⤶ in all other versions it is reserved until 71.⤶ </note>⤶ <ret name="" type="number">⤶ Always returns `0`⤶ </ret> </rets> </function>⤶ ⤶ <example>⤶ <description>Get the address of sinh (ircalladdr array function #15)</description>⤶ <code>⤶ local sinhAddress = jit.util.ircalladdr(14)⤶ print(sinhAddress)⤶ </code>⤶ ⤶ </example></function>