MCPcopy Create free account
hub / github.com/InoriRus/Kyty / luaK_concat

Function luaK_concat

source/3rdparty/lua/src/lcode.c:198–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

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

Calls 2

getjumpFunction · 0.85
fixjumpFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68