MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / discharge2anyreg

Function discharge2anyreg

extlibs/lua/src/lcode.c:866–871  ·  view source on GitHub ↗

** Ensures expression value is in any register. ** (Expression still may have jump lists.) */

Source from the content-addressed store, hash-verified

864** (Expression still may have jump lists.)
865*/
866static void discharge2anyreg (FuncState *fs, expdesc *e) {
867 if (e->k != VNONRELOC) { /* no fixed register yet? */
868 luaK_reserveregs(fs, 1); /* get a register */
869 discharge2reg(fs, e, fs->freereg-1); /* put value there */
870 }
871}
872
873
874static int code_loadbool (FuncState *fs, int A, OpCode op) {

Callers 2

jumponcondFunction · 0.85
codenotFunction · 0.85

Calls 2

luaK_reserveregsFunction · 0.85
discharge2regFunction · 0.85

Tested by

no test coverage detected