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

Function checkArgMode

deps/lua/src/ldebug.c:304–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302
303
304static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) {
305 switch (mode) {
306 case OpArgN: check(r == 0); break;
307 case OpArgU: break;
308 case OpArgR: checkreg(pt, r); break;
309 case OpArgK:
310 check(ISK(r) ? INDEXK(r) < pt->sizek : r < pt->maxstacksize);
311 break;
312 }
313 return 1;
314}
315
316
317static Instruction symbexec (const Proto *pt, int lastpc, int reg) {

Callers 1

symbexecFunction · 0.85

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected