Restructure CHECK to provide a stream (#660)

This commit is contained in:
Jon Meow
2021-07-20 11:52:24 -07:00
committed by GitHub
parent d5124256a2
commit 1ddb1a264a
4 changed files with 77 additions and 10 deletions
@@ -807,7 +807,7 @@ void StepStmt() {
Frame* frame = state->stack.Top();
Action* act = frame->todo.Top();
const Statement* stmt = act->GetStatementAction().stmt;
CHECK(stmt != nullptr && "null statement!");
CHECK(stmt != nullptr) << "null statement!";
if (tracing_output) {
std::cout << "--- step stmt ";
PrintStatement(stmt, 1);