merge ctrl_init / d_init

This commit is contained in:
Ryan Fleury committed 2026-04-22 12:56:15 -07:00
1 parent 2388db3998
commit a90fbc844b
13 files changed
+433 -446

No files matched your search

+3 -8
View File
@@ -263,8 +263,8 @@ typedef CTRL_WAKEUP_FUNCTION_DEF(CTRL_WakeupFunctionType);
////////////////////////////////
//~ rjf: Main State Types
typedef struct CTRL_State CTRL_State;
struct CTRL_State
typedef struct D_CtrlState D_CtrlState;
struct D_CtrlState
{
Arena *arena;
CTRL_WakeupFunctionType *wakeup_hook;
@@ -327,7 +327,7 @@ struct CTRL_State
////////////////////////////////
//~ rjf: Globals
global CTRL_State *ctrl_state = 0;
global D_CtrlState *d_ctrl_state = 0;
read_only global CTRL_Entity ctrl_entity_nil =
{
&ctrl_entity_nil,
@@ -471,11 +471,6 @@ internal CTRL_Entity *ctrl_thread_from_id(CTRL_EntityCtx *ctx, U64 id);
//- rjf: applying events to entity caches
internal void ctrl_entity_store_apply_events(CTRL_EntityCtxRWStore *store, CTRL_EventList *list);
////////////////////////////////
//~ rjf: Main Layer Initialization
internal void ctrl_init(void);
////////////////////////////////
//~ rjf: Wakeup Callback Registration