clean up visualizer default sizes, clean up rough edges of various combos of theme setting / config state

This commit is contained in:
Ryan Fleury
2025-05-05 09:54:29 -07:00
parent f7a3239294
commit c840071bf8
9 changed files with 164 additions and 81 deletions
+18
View File
@@ -1219,6 +1219,24 @@ e_base_offset_from_eval(E_Eval eval)
return eval.value.u64;
}
internal U64
e_range_size_from_eval(E_Eval eval)
{
U64 result = 256;
E_TypeKey type_unwrapped = e_type_key_unwrap(eval.irtree.type_key, E_TypeUnwrapFlag_AllDecorative);
E_TypeKind type_unwrapped_kind = e_type_kind_from_key(type_unwrapped);
if(e_type_kind_is_pointer_or_ref(type_unwrapped_kind) ||
type_unwrapped_kind == E_TypeKind_Function)
{
result = KB(16);
}
else
{
result = e_type_byte_size_from_key(type_unwrapped);
}
return result;
}
////////////////////////////////
//~ rjf: Debug Functions
+1
View File
@@ -1179,6 +1179,7 @@ internal E_Key e_key_wrapf(E_Key key, char *fmt, ...);
//~ rjf: Eval Info Extraction
internal U64 e_base_offset_from_eval(E_Eval eval);
internal U64 e_range_size_from_eval(E_Eval eval);
////////////////////////////////
//~ rjf: Debug Functions