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

Function unmakemask

extlibs/lua/src/ldblib.c:346–353  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

344** Convert a bit mask (for 'gethook') into a string mask
345*/
346static char *unmakemask (int mask, char *smask) {
347 int i = 0;
348 if (mask & LUA_MASKCALL) smask[i++] = 'c';
349 if (mask & LUA_MASKRET) smask[i++] = 'r';
350 if (mask & LUA_MASKLINE) smask[i++] = 'l';
351 smask[i] = '\0';
352 return smask;
353}
354
355
356static int db_sethook (lua_State *L) {

Callers 1

db_gethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected