** Emit code for unary expressions that "produce values" ** (everything but 'not'). ** Expression to produce final result will be encoded in 'e'. */
| 1357 | ** Expression to produce final result will be encoded in 'e'. |
| 1358 | */ |
| 1359 | static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) { |
| 1360 | int r = luaK_exp2anyreg(fs, e); /* opcodes operate only on registers */ |
| 1361 | freeexp(fs, e); |
| 1362 | e->u.info = luaK_codeABC(fs, op, 0, r, 0); /* generate opcode */ |
| 1363 | e->k = VRELOC; /* all those operations are relocatable */ |
| 1364 | luaK_fixline(fs, line); |
| 1365 | } |
| 1366 | |
| 1367 | |
| 1368 | /* |
no test coverage detected