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

Function unmakemask

lib/lua/src/ldblib.c:355–362  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

353** Convert a bit mask (for 'gethook') into a string mask
354*/
355static char *unmakemask (int mask, char *smask) {
356 int i = 0;
357 if (mask & LUA_MASKCALL) smask[i++] = 'c';
358 if (mask & LUA_MASKRET) smask[i++] = 'r';
359 if (mask & LUA_MASKLINE) smask[i++] = 'l';
360 smask[i] = '\0';
361 return smask;
362}
363
364
365static int db_sethook (lua_State *L) {

Callers 1

db_gethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected