MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / finaltarget

Function finaltarget

extlibs/lua/src/lcode.c:1769–1779  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1767** return the final target of a jump (skipping jumps to jumps)
1768*/
1769static int finaltarget (Instruction *code, int i) {
1770 int count;
1771 for (count = 0; count < 100; count++) { /* avoid infinite loops */
1772 Instruction pc = code[i];
1773 if (GET_OPCODE(pc) != OP_JMP)
1774 break;
1775 else
1776 i += GETARG_sJ(pc) + 1;
1777 }
1778 return i;
1779}
1780
1781
1782/*

Callers 1

luaK_finishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected