MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / makemask

Function makemask

lib/lua/src/ldblib.c:342–349  ·  view source on GitHub ↗

** Convert a string mask (for 'sethook') into a bit mask */

Source from the content-addressed store, hash-verified

340** Convert a string mask (for 'sethook') into a bit mask
341*/
342static int makemask (const char *smask, int count) {
343 int mask = 0;
344 if (strchr(smask, 'c')) mask |= LUA_MASKCALL;
345 if (strchr(smask, 'r')) mask |= LUA_MASKRET;
346 if (strchr(smask, 'l')) mask |= LUA_MASKLINE;
347 if (count > 0) mask |= LUA_MASKCOUNT;
348 return mask;
349}
350
351
352/*

Callers 1

db_sethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected