ZAM support for keeping "assert" statements

This commit is contained in:
Vern Paxson 2024-12-03 10:37:38 -07:00
parent a328185a8f
commit 908e8a3a27
8 changed files with 113 additions and 17 deletions

View file

@ -480,7 +480,7 @@ void CPPCompile::GenForOverString(const ExprPtr& str, const IDPList* loop_vars)
}
void CPPCompile::GenAssertStmt(const AssertStmt* a) {
auto& cond = a->Cond();
auto cond = a->StmtExpr();
auto& msg = a->Msg();
Emit("{ // begin a new scope for internal \"assert\" variables");