MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaK_patchtohere

Function luaK_patchtohere

depends/lua/src/lcode.c:252–255  ·  view source on GitHub ↗

** Add elements in 'list' to list of pending jumps to "here" ** (current position) */

Source from the content-addressed store, hash-verified

250** (current position)
251*/
252void luaK_patchtohere (FuncState *fs, int list) {
253 luaK_getlabel(fs); /* mark "here" as a jump target */
254 luaK_concat(fs, &fs->jpc, list);
255}
256
257
258/*

Callers 9

leaveblockFunction · 0.85
whilestatFunction · 0.85
forbodyFunction · 0.85
test_then_blockFunction · 0.85
ifstatFunction · 0.85
luaK_patchlistFunction · 0.85
exp2regFunction · 0.85
luaK_goiftrueFunction · 0.85
luaK_goiffalseFunction · 0.85

Calls 2

luaK_getlabelFunction · 0.85
luaK_concatFunction · 0.85

Tested by 1

test_then_blockFunction · 0.68