MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / getjump

Function getjump

libraries/AP_Scripting/lua/src/lcode.c:97–103  ·  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

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

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected