more progress on converting cmds codepaths -> msgs codepaths

This commit is contained in:
Ryan Fleury
2024-09-01 16:20:26 -07:00
parent 06f65857db
commit 6b02c8a7d6
10 changed files with 274 additions and 6 deletions
+15
View File
@@ -6181,6 +6181,21 @@ d_errorf(char *fmt, ...)
////////////////////////////////
//~ rjf: Message Functions
internal D_MsgKind
d_msg_kind_from_string(String8 string)
{
D_MsgKind result = D_MsgKind_Null;
for(EachNonZeroEnumVal(D_MsgKind, k))
{
if(str8_match(string, d_msg_kind_name_lower_table[k], 0))
{
result = k;
break;
}
}
return result;
}
internal void
d_msg_(D_MsgKind kind, D_Regs *regs)
{