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

Function luaK_patchclose

third-party/lua-5.2.4/src/lcode.c:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178
179LUAI_FUNC void luaK_patchclose (FuncState *fs, int list, int level) {
180 level++; /* argument is +1 to reserve 0 as non-op */
181 while (list != NO_JUMP) {
182 int next = getjump(fs, list);
183 lua_assert(GET_OPCODE(fs->f->code[list]) == OP_JMP &&
184 (GETARG_A(fs->f->code[list]) == 0 ||
185 GETARG_A(fs->f->code[list]) >= level));
186 SETARG_A(fs->f->code[list], level);
187 list = next;
188 }
189}
190
191
192void luaK_patchtohere (FuncState *fs, int list) {

Callers 4

findlabelFunction · 0.70
movegotosoutFunction · 0.70
leaveblockFunction · 0.70
repeatstatFunction · 0.70

Calls 1

getjumpFunction · 0.70

Tested by

no test coverage detected