MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaK_patchclose

Function luaK_patchclose

src/Chain/libraries/glua/lcode.cpp:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196void luaK_patchclose(FuncState *fs, int list, int level) {
197 level++; /* argument is +1 to reserve 0 as non-op */
198 while (list != NO_JUMP) {
199 int next = getjump(fs, list);
200 lua_assert(GET_OPCODE(fs->f->code[list]) == OP_JMP &&
201 (GETARG_A(fs->f->code[list]) == 0 ||
202 GETARG_A(fs->f->code[list]) >= level));
203 SETARG_A(fs->f->code[list], level);
204 list = next;
205 }
206}
207
208
209void luaK_patchtohere(FuncState *fs, int list) {

Callers 4

findlabelFunction · 0.85
movegotosoutFunction · 0.85
leaveblockFunction · 0.85
repeatstatFunction · 0.85

Calls 1

getjumpFunction · 0.85

Tested by

no test coverage detected