MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / getjump

Function getjump

third-party/lua-5.4.6/src/lcode.c:155–161  ·  view source on GitHub ↗

** Gets the destination address of a jump instruction. Used to traverse ** a list of jumps. */

Source from the content-addressed store, hash-verified

153** a list of jumps.
154*/
155static int getjump (FuncState *fs, int pc) {
156 int offset = GETARG_sJ(fs->f->code[pc]);
157 if (offset == NO_JUMP) /* point to itself represents end of list */
158 return NO_JUMP; /* end of list */
159 else
160 return (pc+1)+offset; /* turn offset into absolute position */
161}
162
163
164/*

Callers 4

luaK_concatFunction · 0.70
removevaluesFunction · 0.70
patchlistauxFunction · 0.70
need_valueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected