MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaK_concat

Function luaK_concat

deps/lua/src/lcode.c:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185void luaK_concat (FuncState *fs, int *l1, int l2) {
186 if (l2 == NO_JUMP) return;
187 else if (*l1 == NO_JUMP)
188 *l1 = l2;
189 else {
190 int list = *l1;
191 int next;
192 while ((next = getjump(fs, list)) != NO_JUMP) /* find last element */
193 list = next;
194 fixjump(fs, list, l2);
195 }
196}
197
198
199void luaK_checkstack (FuncState *fs, int n) {

Callers 8

breakstatFunction · 0.85
ifstatFunction · 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

no test coverage detected