The defaults print uses when a value has no wrapper: one FormatInt, FormatFloat, FormatStruct and FormatArray,
and how pointers are shown. Set a field of context.print_style to change how every later print writes that kind of
value.
old := context.print_style.default_format_float.trailing_width;
context.print_style.default_format_float.trailing_width = 2;
assert(tprint("%", 3.14159) == "3.14");
context.print_style.default_format_float.trailing_width = old;Fields
- default_format_int: FormatInt
- default_format_float: FormatFloat
- default_format_struct: FormatStruct
- default_format_array: FormatArray
- default_format_absolute_pointer: FormatInt
- struct_printer: (builder: *String_Builder, any: Any, struct_printer_data: *void) -> bool
- struct_printer_data: *void
- indentation_depth: s32
- state_flags: enum u32 { INSIDE_DATA_STRUCTURE_PRINTING :: 0x1; }
- log_runtime_errors: := true