** Emit code for unary expressions that "produce values" ** (everything but 'not'). ** Expression to produce final result will be encoded in 'e'. */
| 1339 | ** Expression to produce final result will be encoded in 'e'. |
| 1340 | */ |
| 1341 | static void codeunexpval (FuncState *fs, OpCode op, expdesc *e, int line) { |
| 1342 | int r = luaK_exp2anyreg(fs, e); /* opcodes operate only on registers */ |
| 1343 | freeexp(fs, e); |
| 1344 | e->u.info = luaK_codeABC(fs, op, 0, r, 0); /* generate opcode */ |
| 1345 | e->k = VRELOC; /* all those operations are relocatable */ |
| 1346 | luaK_fixline(fs, line); |
| 1347 | } |
| 1348 | |
| 1349 | |
| 1350 | /* |
no test coverage detected