0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-02 21:59:02 +02:00

modules/console: Use dynamic for tokenization here.

This commit is contained in:
Jason Volk 2019-03-09 16:45:30 -08:00
parent 6cc17887de
commit 45840a3393

View file

@ -535,26 +535,14 @@ console_cmd__log__level(opt &out, const string_view &line)
bool
console_cmd__log__mask(opt &out, const string_view &line)
{
thread_local string_view list[64];
const auto &count
{
tokens(line, ' ', list)
};
log::console_mask({list, count});
log::console_mask(tokens<std::vector>(line, ' '));
return true;
}
bool
console_cmd__log__unmask(opt &out, const string_view &line)
{
thread_local string_view list[64];
const auto &count
{
tokens(line, ' ', list)
};
log::console_unmask({list, count});
log::console_unmask(tokens<std::vector>(line, ' '));
return true;
}