MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaK_concat

Function luaK_concat

lib/lua/src/lcode.c:181–192  ·  view source on GitHub ↗

** Concatenate jump-list 'l2' into jump-list 'l1' */

Source from the content-addressed store, hash-verified

179** Concatenate jump-list 'l2' into jump-list 'l1'
180*/
181void luaK_concat (FuncState *fs, int *l1, int l2) {
182 if (l2 == NO_JUMP) return; /* nothing to concatenate? */
183 else if (*l1 == NO_JUMP) /* no original list? */
184 *l1 = l2; /* 'l1' points to 'l2' */
185 else {
186 int list = *l1;
187 int next;
188 while ((next = getjump(fs, list)) != NO_JUMP) /* find last element */
189 list = next;
190 fixjump(fs, list, l2); /* last element links to 'l2' */
191 }
192}
193
194
195/*

Callers 5

test_then_blockFunction · 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