eval2: first pass at type_key -> string path

This commit is contained in:
Ryan Fleury committed 2026-07-27 14:47:06 -07:00
1 parent 0963f4a6de
commit 20cd955cc9
3 files changed
+226 -1

No files matched your search

+2 -1
View File
@@ -213,7 +213,7 @@ entry_point(CmdLine *cmdline)
String8 msgs_string = str8_list_join(scratch.arena, &msgs, &join);
// rjf: log
String8 log = str8f(scratch.arena, "%S -> %I64d (f32: %f) (f64: %f) *%s* %s%S\n",
String8 log = str8f(scratch.arena, "%S -> %I64d (f32: %f) (f64: %f) *%s* (type: %S) %s%S\n",
strings[idx],
val.s64,
val.f32,
@@ -221,6 +221,7 @@ entry_point(CmdLine *cmdline)
irtree->mode == E2_Mode_Type ? "type" :
irtree->mode == E2_Mode_Value ? "value" :
"address",
e2_string_from_type_key(scratch.arena, irtree->type_key),
msgs_string.size != 0 ? " // " : "", msgs_string);
raddbg_log("%S", log);
printf("%.*s", str8_varg(log));