0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

modules/console: Combine vm/eval cmds; improve output.

This commit is contained in:
Jason Volk 2019-09-11 09:09:35 -07:00
parent 461401c8bf
commit 090fac34bc

View file

@ -13757,24 +13757,16 @@ console_cmd__vm(opt &out, const string_view &line)
<< std::right << std::setw(10) << size(m::vm::eval::list)
<< std::endl;
return true;
}
bool
console_cmd__vm__eval(opt &out, const string_view &line)
{
out << std::endl;
for(const auto *const &eval : m::vm::eval::list)
{
assert(eval);
assert(eval->ctx);
out << std::setw(9) << std::right << eval->id
<< " | " << std::setw(4) << std::right << id(*eval->ctx)
<< " | " << std::setw(4) << std::right << eval->sequence
<< " | " << std::setw(64) << std::left << eval->event_id
;
out << std::endl;
out
<< loghead(*eval)
<< std::endl
;
}
return true;