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

Function discharge2anyreg

depends/lua/src/lcode.c:641–646  ·  view source on GitHub ↗

** Ensures expression value is in any register. */

Source from the content-addressed store, hash-verified

639** Ensures expression value is in any register.
640*/
641static void discharge2anyreg (FuncState *fs, expdesc *e) {
642 if (e->k != VNONRELOC) { /* no fixed register yet? */
643 luaK_reserveregs(fs, 1); /* get a register */
644 discharge2reg(fs, e, fs->freereg-1); /* put value there */
645 }
646}
647
648
649static int code_loadbool (FuncState *fs, int A, int b, int jump) {

Callers 2

jumponcondFunction · 0.85
codenotFunction · 0.85

Calls 2

luaK_reserveregsFunction · 0.85
discharge2regFunction · 0.85

Tested by

no test coverage detected