remove backtrace (now part of vendor)

preparing to do a full rewrite of the prototype (curation of old code)
This commit is contained in:
2025-09-14 11:17:29 -04:00
parent 73bfdb63ea
commit 6c6e4ad75e
6 changed files with 3 additions and 44 deletions

View File

@@ -5,34 +5,6 @@ import "core:io"
import "core:os"
import "core:text/table"
dump_stacktrace :: proc( allocator := context.temp_allocator ) -> string
{
trace_result := stacktrace()
lines, error := stacktrace_lines( trace_result )
padding := " "
log_table := table.init( & table.Table{}, context.temp_allocator, context.temp_allocator )
for line in lines {
table.row( log_table, padding, line.symbol, " - ", line.location )
}
// table.build(log_table)
// TODO(Ed): regression with the stack trace lib
writer_builder : StringBuilder
str_builder_init( & writer_builder, allocator = allocator )
writer := to_writer( & writer_builder )
for row in 2 ..< log_table.nr_rows {
for col in 0 ..< log_table.nr_cols {
table.write_table_cell( writer, log_table, row, col )
}
io.write_byte( writer, '\n' )
}
return to_string( writer_builder )
}
ensure :: #force_inline proc( condition : b32, msg : string, location := #caller_location )
{
if condition {