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

Function luaK_concat

third-party/lua-5.5.0/src/lcode.c:182–193  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 5

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