MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaK_concat

Function luaK_concat

freebsd/contrib/openzfs/module/lua/lcode.c:196–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196void luaK_concat (FuncState *fs, int *l1, int l2) {
197 if (l2 == NO_JUMP) return;
198 else if (*l1 == NO_JUMP)
199 *l1 = l2;
200 else {
201 int list = *l1;
202 int next;
203 while ((next = getjump(fs, list)) != NO_JUMP) /* find last element */
204 list = next;
205 fixjump(fs, list, l2);
206 }
207}
208
209
210static int luaK_code (FuncState *fs, Instruction i) {

Callers 7

test_then_blockFunction · 0.70
luaK_jumpFunction · 0.70
luaK_patchtohereFunction · 0.70
exp2regFunction · 0.70
luaK_goiftrueFunction · 0.70
luaK_goiffalseFunction · 0.70
luaK_posfixFunction · 0.70

Calls 2

getjumpFunction · 0.70
fixjumpFunction · 0.70

Tested by 1

test_then_blockFunction · 0.56