MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / previousinstruction

Function previousinstruction

3rd/lua-5.4.3/src/lcode.c:115–121  ·  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

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

Callers 2

luaK_nilFunction · 0.85
codeconcatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected