MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaG_checkopenop

Function luaG_checkopenop

Source/Misc/lua/src/lua.c:4798–4809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaV_executeFunction · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected