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

Function checkArgMode

Source/Misc/lua/src/lua.c:4812–4822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4810
4811
4812static int checkArgMode (const Proto *pt, int r, enum OpArgMask mode) {
4813switch (mode) {
4814case OpArgN: check(r == 0); break;
4815case OpArgU: break;
4816case OpArgR: checkreg(pt, r); break;
4817case OpArgK:
4818check(ISK(r) ? INDEXK(r) < pt->sizek : r < pt->maxstacksize);
4819break;
4820}
4821return 1;
4822}
4823
4824
4825static Instruction symbexec (const Proto *pt, int lastpc, int reg) {

Callers 1

symbexecFunction · 0.85

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected