set up scaffolding for dbg engine/frontendm sgs

This commit is contained in:
Ryan Fleury
2024-08-30 15:24:35 -07:00
parent 533fd0041f
commit 8770a43678
9 changed files with 609 additions and 0 deletions
+13
View File
@@ -6215,6 +6215,19 @@ d_errorf(char *fmt, ...)
scratch_end(scratch);
}
////////////////////////////////
//~ rjf: Message Functions
internal void
d_msg_(D_MsgKind kind, D_Regs *regs)
{
D_MsgNode *n = push_array(d_state->msgs_arena, D_MsgNode, 1);
SLLQueuePush(d_state->msgs.first, d_state->msgs.last, n);
d_state->msgs.count += 1;
n->v.kind = kind;
n->v.regs = d_regs_copy(d_state->msgs_arena, regs);
}
////////////////////////////////
//~ rjf: Main Layer Top-Level Calls