MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / makemask

Function makemask

lua/ldblib.c:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223
224static int makemask (const char *smask, int count) {
225 int mask = 0;
226 if (strchr(smask, 'c')) mask |= LUA_MASKCALL;
227 if (strchr(smask, 'r')) mask |= LUA_MASKRET;
228 if (strchr(smask, 'l')) mask |= LUA_MASKLINE;
229 if (count > 0) mask |= LUA_MASKCOUNT;
230 return mask;
231}
232
233
234static char *unmakemask (int mask, char *smask) {

Callers 1

db_sethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected