MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getjumpcontrol

Function getjumpcontrol

extlibs/lua/src/lcode.c:242–248  ·  view source on GitHub ↗

** Returns the position of the instruction "controlling" a given ** jump (that is, its condition), or the jump itself if it is ** unconditional. */

Source from the content-addressed store, hash-verified

240** unconditional.
241*/
242static Instruction *getjumpcontrol (FuncState *fs, int pc) {
243 Instruction *pi = &fs->f->code[pc];
244 if (pc >= 1 && testTMode(GET_OPCODE(*(pi-1))))
245 return pi-1;
246 else
247 return pi;
248}
249
250
251/*

Callers 3

patchtestregFunction · 0.85
need_valueFunction · 0.85
negateconditionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected