mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-25 08:57:52 +00:00
prepping to collapse Arena receiving functions to those that receive AllocatorInfo
perf impact of the indirection should be minimal, reduces code duplication. Ideally we'd use gencpp to just have the user specify what they want, then modify which proc is avail by doing the refactors required for using either However, it can't process execution bodies yet or expressions so thats not possible. The other way is to just utilize _Generic to generalize the codepath so that it collapses neater but that leads to a ton of implementation getting lifted to preprocessing... so no.
This commit is contained in:
@@ -290,7 +290,7 @@ String8
|
||||
os_full_path_from_path_alloc(AllocatorInfo ainfo, String8 path)
|
||||
{
|
||||
char buffer[PATH_MAX] = {0};
|
||||
TempArena scratch = scratch_begin(0, 0); {
|
||||
TempArena scratch = scratch_begin_alloc(ainfo); {
|
||||
String8 path_copy = push_str8_copy(scratch.arena, path);
|
||||
realpath((char *)path_copy.str, buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user