MCPcopy Create free account
hub / github.com/DFHack/dfhack / unmakemask

Function unmakemask

depends/lua/src/ldblib.c:337–344  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

335** Convert a bit mask (for 'gethook') into a string mask
336*/
337static char *unmakemask (int mask, char *smask) {
338 int i = 0;
339 if (mask & LUA_MASKCALL) smask[i++] = 'c';
340 if (mask & LUA_MASKRET) smask[i++] = 'r';
341 if (mask & LUA_MASKLINE) smask[i++] = 'l';
342 smask[i] = '\0';
343 return smask;
344}
345
346
347static int db_sethook (lua_State *L) {

Callers 1

db_gethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected