progress on collaping arena->allocator info code paths (did some generic selection changes)

Going to offload prefix naming to the c11.refactor and cpp17.refactor
This commit is contained in:
2025-02-09 19:14:33 -05:00
parent dc9743b003
commit 546c50885f
23 changed files with 403 additions and 290 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ log_select(Log* log) {
void
log_msg(LogMsgKind kind, String8 string) {
if(log_active != 0 && log_active->top_scope != 0) {
String8 string_copy = push_str8_copy(log_active->arena, string);
String8 string_copy = str8_copy(log_active->arena, string);
str8_list_push(log_active->arena, &log_active->top_scope->strings[kind], string_copy);
}
}
@@ -41,7 +41,7 @@ log_msgf(LogMsgKind kind, char *fmt, ...) {
va_list args;
va_start(args, fmt);
String8 string = push_str8fv(scratch.arena, fmt, args);
String8 string = str8fv(scratch.arena, fmt, args);
log_msg(kind, string);
va_end(args);