Garry's Mod Wiki

Revision Difference

jit.util.ircalladdr#546821

<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> <warning>This function isn't officially documented on LuJIT wiki, use it at your own risk.</warning> <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> </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>