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

Function previousinstruction

third-party/lua-5.5.0/src/lcode.c:117–123  ·  view source on GitHub ↗

** Return the previous instruction of the current code. If there ** may be a jump target between the current instruction and the ** previous one, return an invalid instruction (to avoid wrong ** optimizations). */

Source from the content-addressed store, hash-verified

115** optimizations).
116*/
117static Instruction *previousinstruction (FuncState *fs) {
118 static const Instruction invalidinstruction = ~(Instruction)0;
119 if (fs->pc > fs->lasttarget)
120 return &fs->f->code[fs->pc - 1]; /* previous instruction */
121 else
122 return cast(Instruction*, &invalidinstruction);
123}
124
125
126/*

Callers 2

luaK_nilFunction · 0.70
codeconcatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected