| 838 | |
| 839 | |
| 840 | void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) { |
| 841 | expdesc e2; |
| 842 | e2.t = e2.f = NO_JUMP; e2.k = VKINT; e2.u.ival = 0; |
| 843 | switch (op) { |
| 844 | case OPR_MINUS: case OPR_BNOT: case OPR_LEN: { |
| 845 | codeexpval(fs, cast(OpCode, (op - OPR_MINUS) + OP_UNM), e, &e2, line); |
| 846 | break; |
| 847 | } |
| 848 | case OPR_NOT: codenot(fs, e); break; |
| 849 | default: lua_assert(0); |
| 850 | } |
| 851 | } |
| 852 | |
| 853 | |
| 854 | void luaK_infix (FuncState *fs, BinOpr op, expdesc *v) { |
no test coverage detected