mirror of
https://github.com/matrix-construct/construct
synced 2024-10-03 06:08:52 +02:00
modules/console: Use dynamic for tokenization here.
This commit is contained in:
parent
6cc17887de
commit
45840a3393
1 changed files with 2 additions and 14 deletions
|
@ -535,26 +535,14 @@ console_cmd__log__level(opt &out, const string_view &line)
|
||||||
bool
|
bool
|
||||||
console_cmd__log__mask(opt &out, const string_view &line)
|
console_cmd__log__mask(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
thread_local string_view list[64];
|
log::console_mask(tokens<std::vector>(line, ' '));
|
||||||
const auto &count
|
|
||||||
{
|
|
||||||
tokens(line, ' ', list)
|
|
||||||
};
|
|
||||||
|
|
||||||
log::console_mask({list, count});
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
console_cmd__log__unmask(opt &out, const string_view &line)
|
console_cmd__log__unmask(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
thread_local string_view list[64];
|
log::console_unmask(tokens<std::vector>(line, ' '));
|
||||||
const auto &count
|
|
||||||
{
|
|
||||||
tokens(line, ' ', list)
|
|
||||||
};
|
|
||||||
|
|
||||||
log::console_unmask({list, count});
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue