MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / makemask

Function makemask

extlibs/lua/src/ldblib.c:333–340  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

331** Convert a string mask (for 'sethook') into a bit mask
332*/
333static int makemask (const char *smask, int count) {
334 int mask = 0;
335 if (strchr(smask, 'c')) mask |= LUA_MASKCALL;
336 if (strchr(smask, 'r')) mask |= LUA_MASKRET;
337 if (strchr(smask, 'l')) mask |= LUA_MASKLINE;
338 if (count > 0) mask |= LUA_MASKCOUNT;
339 return mask;
340}
341
342
343/*

Callers 1

db_sethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected