MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaG_checkopenop

Function luaG_checkopenop

deps/lua/src/ldebug.c:290–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288#define checkopenop(pt,pc) luaG_checkopenop((pt)->code[(pc)+1])
289
290int 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
304static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) {

Callers 1

luaV_executeFunction · 0.85

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected