** Gets the destination address of a jump instruction. Used to traverse ** a list of jumps. */
| 151 | ** a list of jumps. |
| 152 | */ |
| 153 | static int getjump (FuncState *fs, int pc) { |
| 154 | int offset = GETARG_sJ(fs->f->code[pc]); |
| 155 | if (offset == NO_JUMP) /* point to itself represents end of list */ |
| 156 | return NO_JUMP; /* end of list */ |
| 157 | else |
| 158 | return (pc+1)+offset; /* turn offset into absolute position */ |
| 159 | } |
| 160 | |
| 161 | |
| 162 | /* |
no outgoing calls
no test coverage detected