MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / getjump

Function getjump

deps/lua/src/lcode.c:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100static int getjump (FuncState *fs, int pc) {
101 int offset = GETARG_sBx(fs->f->code[pc]);
102 if (offset == NO_JUMP) /* point to itself represents end of list */
103 return NO_JUMP; /* end of list */
104 else
105 return (pc+1)+offset; /* turn offset into absolute position */
106}
107
108
109static Instruction *getjumpcontrol (FuncState *fs, int pc) {

Callers 4

need_valueFunction · 0.85
removevaluesFunction · 0.85
patchlistauxFunction · 0.85
luaK_concatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected