MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaK_exp2nextreg

Function luaK_exp2nextreg

3rd/lua-5.4.3/src/lcode.c:924–929  ·  view source on GitHub ↗

** Ensures final expression result is in next available register. */

Source from the content-addressed store, hash-verified

922** Ensures final expression result is in next available register.
923*/
924void luaK_exp2nextreg (FuncState *fs, expdesc *e) {
925 luaK_dischargevars(fs, e);
926 freeexp(fs, e);
927 luaK_reserveregs(fs, 1);
928 exp2reg(fs, e, fs->freereg - 1);
929}
930
931
932/*

Callers 12

adjust_assignFunction · 0.85
codeclosureFunction · 0.85
closelistfieldFunction · 0.85
lastlistfieldFunction · 0.85
explistFunction · 0.85
funcargsFunction · 0.85
suffixedexpFunction · 0.85
exp1Function · 0.85
retstatFunction · 0.85
luaK_exp2anyregFunction · 0.85
luaK_infixFunction · 0.85
luaK_posfixFunction · 0.85

Calls 4

luaK_dischargevarsFunction · 0.85
freeexpFunction · 0.85
luaK_reserveregsFunction · 0.85
exp2regFunction · 0.85

Tested by

no test coverage detected