MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / makemask

Function makemask

third-party/lua-5.5.0/src/ldblib.c:345–352  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 1

db_sethookFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected