** Code a 'return' instruction */
| 204 | ** Code a 'return' instruction |
| 205 | */ |
| 206 | void luaK_ret (FuncState *fs, int first, int nret) { |
| 207 | OpCode op; |
| 208 | switch (nret) { |
| 209 | case 0: op = OP_RETURN0; break; |
| 210 | case 1: op = OP_RETURN1; break; |
| 211 | default: op = OP_RETURN; break; |
| 212 | } |
| 213 | luaK_codeABC(fs, op, first, nret + 1, 0); |
| 214 | } |
| 215 | |
| 216 | |
| 217 | /* |
no outgoing calls
no test coverage detected