make eval ctxs more robust to missing info, e.g. in the test harness case

This commit is contained in:
Ryan Fleury
2025-03-31 13:48:19 -07:00
parent 17ff4da9bf
commit a5d6e8a335
17 changed files with 43 additions and 29 deletions
+6
View File
@@ -41,6 +41,7 @@ entry_point(CmdLine *cmdline)
str8_lit("123"),
str8_lit("1 + 2"),
str8_lit("foo"),
str8_lit("foo(bar)"),
};
for EachElement(idx, exprs)
{
@@ -82,6 +83,10 @@ entry_point(CmdLine *cmdline)
{
raddbg_log(" (%I64u)", expr->value.u64);
}break;
case E_ExprKind_LeafIdentifier:
{
raddbg_log(" (`%S`)", expr->string);
}break;
}
raddbg_log("\n");
Task *last_task = t;
@@ -153,5 +158,6 @@ entry_point(CmdLine *cmdline)
}
}
raddbg_log("\n");
}
}