MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / codeunexpval

Function codeunexpval

third-party/lua-5.5.0/src/lcode.c:1473–1479  ·  view source on GitHub ↗

** Emit code for unary expressions that "produce values" ** (everything but 'not'). ** Expression to produce final result will be encoded in 'e'. */

Source from the content-addressed store, hash-verified

1471** Expression to produce final result will be encoded in 'e'.
1472*/
1473static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) {
1474 int r = luaK_exp2anyreg(fs, e); /* opcodes operate only on registers */
1475 freeexp(fs, e);
1476 e->u.info = luaK_codeABC(fs, op, 0, r, 0); /* generate opcode */
1477 e->k = VRELOC; /* all those operations are relocatable */
1478 luaK_fixline(fs, line);
1479}
1480
1481
1482/*

Callers 1

luaK_prefixFunction · 0.70

Calls 4

luaK_exp2anyregFunction · 0.70
freeexpFunction · 0.70
luaK_fixlineFunction · 0.70
luaK_codeABCFunction · 0.50

Tested by

no test coverage detected