| 4796 | #define checkopenop(pt,pc) luaG_checkopenop((pt)->code[(pc)+1]) |
| 4797 | |
| 4798 | int luaG_checkopenop (Instruction i) { |
| 4799 | switch (GET_OPCODE(i)) { |
| 4800 | case OP_CALL: |
| 4801 | case OP_TAILCALL: |
| 4802 | case OP_RETURN: |
| 4803 | case OP_SETLIST: { |
| 4804 | check(GETARG_B(i) == 0); |
| 4805 | return 1; |
| 4806 | } |
| 4807 | default: return 0; /* invalid instruction after an open call */ |
| 4808 | } |
| 4809 | } |
| 4810 | |
| 4811 | |
| 4812 | static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) { |