Lines Matching refs:smask
333 static int makemask (const char *smask, int count) { in makemask() argument
335 if (strchr(smask, 'c')) mask |= LUA_MASKCALL; in makemask()
336 if (strchr(smask, 'r')) mask |= LUA_MASKRET; in makemask()
337 if (strchr(smask, 'l')) mask |= LUA_MASKLINE; in makemask()
346 static char *unmakemask (int mask, char *smask) { in unmakemask() argument
348 if (mask & LUA_MASKCALL) smask[i++] = 'c'; in unmakemask()
349 if (mask & LUA_MASKRET) smask[i++] = 'r'; in unmakemask()
350 if (mask & LUA_MASKLINE) smask[i++] = 'l'; in unmakemask()
351 smask[i] = '\0'; in unmakemask()
352 return smask; in unmakemask()
365 const char *smask = luaL_checkstring(L, arg+2); in db_sethook() local
368 func = hookf; mask = makemask(smask, count); in db_sethook()