Lines Matching refs:smask
276 static int makemask (const char *smask, int count) { in makemask() argument
278 if (strchr(smask, 'c')) mask |= LUA_MASKCALL; in makemask()
279 if (strchr(smask, 'r')) mask |= LUA_MASKRET; in makemask()
280 if (strchr(smask, 'l')) mask |= LUA_MASKLINE; in makemask()
286 static char *unmakemask (int mask, char *smask) { in unmakemask() argument
288 if (mask & LUA_MASKCALL) smask[i++] = 'c'; in unmakemask()
289 if (mask & LUA_MASKRET) smask[i++] = 'r'; in unmakemask()
290 if (mask & LUA_MASKLINE) smask[i++] = 'l'; in unmakemask()
291 smask[i] = '\0'; in unmakemask()
292 return smask; in unmakemask()
305 const char *smask = luaL_checkstring(L, arg+2); in db_sethook() local
308 func = hookf; mask = makemask(smask, count); in db_sethook()