MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / finaltarget

Function finaltarget

Dependencies/lua/src/lcode.c:1829–1839  ·  view source on GitHub ↗

** return the final target of a jump (skipping jumps to jumps) */

Source from the content-addressed store, hash-verified

1827** return the final target of a jump (skipping jumps to jumps)
1828*/
1829static int finaltarget (Instruction *code, int i) {
1830 int count;
1831 for (count = 0; count < 100; count++) { /* avoid infinite loops */
1832 Instruction pc = code[i];
1833 if (GET_OPCODE(pc) != OP_JMP)
1834 break;
1835 else
1836 i += GETARG_sJ(pc) + 1;
1837 }
1838 return i;
1839}
1840
1841
1842/*

Callers 1

luaK_finishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected