Closed jorgenpt closed 1 year ago
Instead of directly calling printf and exit, use yojimbo_printf and yojimbo_assert in the leak detection in Allocator::~Allocator.
printf
exit
yojimbo_printf
yojimbo_assert
Allocator::~Allocator
This helps integrate better with client applications.
Also switch the default_assert_handler to use yojimbo_printf.
default_assert_handler
Upvoting this - I've been bitten by that exit(1) before where it was like "wait what? what just happened?". Hope nothing is blocking it from being merged into main.
Instead of directly calling
printf
andexit
, useyojimbo_printf
andyojimbo_assert
in the leak detection inAllocator::~Allocator
.This helps integrate better with client applications.
Also switch the
default_assert_handler
to useyojimbo_printf
.