** Ensures final expression result is in a valid R/K index ** (that is, it is either in a register or in 'k' with an index ** in the range of R/K indices). ** Returns 1 iff expression is K. */
| 1009 | ** Returns 1 iff expression is K. |
| 1010 | */ |
| 1011 | int luaK_exp2RK (FuncState *fs, expdesc *e) { |
| 1012 | if (luaK_exp2K(fs, e)) |
| 1013 | return 1; |
| 1014 | else { /* not a constant in the right range: put it in a register */ |
| 1015 | luaK_exp2anyreg(fs, e); |
| 1016 | return 0; |
| 1017 | } |
| 1018 | } |
| 1019 | |
| 1020 | |
| 1021 | static void codeABRK (FuncState *fs, OpCode o, int a, int b, |
no test coverage detected