Revision Difference
jit.util.ircalladdr#549489
<function name="util.ircalladdr" parent="jit" type="libraryfunc">
<description>
Gets the address of a function from a list of 20 functions, for the list see <page>Ircalladdr Functions</page>
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>
</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>
</args>
<rets>
<ret name="" type="number">The address of the function</ret>⤶
<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>⤶
</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>