MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaK_concat

Function luaK_concat

libraries/AP_Scripting/lua/src/lcode.c:123–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

121** Concatenate jump-list 'l2' into jump-list 'l1'
122*/
123void luaK_concat (FuncState *fs, int *l1, int l2) {
124 if (l2 == NO_JUMP) return; /* nothing to concatenate? */
125 else if (*l1 == NO_JUMP) /* no original list? */
126 *l1 = l2; /* 'l1' points to 'l2' */
127 else {
128 int list = *l1;
129 int next;
130 while ((next = getjump(fs, list)) != NO_JUMP) /* find last element */
131 list = next;
132 fixjump(fs, list, l2); /* last element links to 'l2' */
133 }
134}
135
136
137/*

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