Lines Matching refs:smask
324 static int makemask (const char *smask, int count) { in makemask() argument
326 if (strchr(smask, 'c')) mask |= LUA_MASKCALL; in makemask()
327 if (strchr(smask, 'r')) mask |= LUA_MASKRET; in makemask()
328 if (strchr(smask, 'l')) mask |= LUA_MASKLINE; in makemask()
337 static char *unmakemask (int mask, char *smask) { in unmakemask() argument
339 if (mask & LUA_MASKCALL) smask[i++] = 'c'; in unmakemask()
340 if (mask & LUA_MASKRET) smask[i++] = 'r'; in unmakemask()
341 if (mask & LUA_MASKLINE) smask[i++] = 'l'; in unmakemask()
342 smask[i] = '\0'; in unmakemask()
343 return smask; in unmakemask()
356 const char *smask = luaL_checkstring(L, arg+2); in db_sethook() local
359 func = hookf; mask = makemask(smask, count); in db_sethook()