MCPcopy Create free account
hub / github.com/danomatika/ofxLua / finaltarget

Function finaltarget

libs/lua/lcode.c:1826–1836  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

luaK_finishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected