| 288 | #define checkopenop(pt,pc) luaG_checkopenop((pt)->code[(pc)+1]) |
| 289 | |
| 290 | int luaG_checkopenop (Instruction i) { |
| 291 | switch (GET_OPCODE(i)) { |
| 292 | case OP_CALL: |
| 293 | case OP_TAILCALL: |
| 294 | case OP_RETURN: |
| 295 | case OP_SETLIST: { |
| 296 | check(GETARG_B(i) == 0); |
| 297 | return 1; |
| 298 | } |
| 299 | default: return 0; /* invalid instruction after an open call */ |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | |
| 304 | static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) { |