progress on compiler errors

This commit is contained in:
ed
2025-02-08 22:36:11 -05:00
parent 835bfe654b
commit 3b12268f46
31 changed files with 535 additions and 468 deletions
+12 -2
View File
@@ -9,9 +9,9 @@
////////////////////////////////
//~ rjf: Globals/Thread-Locals
MD_API_C thread_static Log *log_active;
MD_API_C thread_static Log* log_active;
#if !BUILD_SUPPLEMENTARY_UNIT
MD_API_C thread_static Log *log_active = 0;
MD_API_C thread_static Log* log_active = 0;
#endif
////////////////////////////////
@@ -54,6 +54,16 @@ log_msgf(LogMsgKind kind, char *fmt, ...) {
////////////////////////////////
//~ rjf: Log Scopes
void
log_scope_begin(void) {
if (log_active != 0) {
U64 pos = arena_pos(log_active->arena);
LogScope* scope = push_array(log_active->arena, LogScope, 1);
scope->pos = pos;
sll_stack_push(log_active->top_scope, scope);
}
}
LogScopeResult
log_scope_end(Arena *arena)
{