its compiling... (prepping for runtime testing)

This commit is contained in:
ed
2025-02-08 23:27:06 -05:00
parent 3b12268f46
commit 50c7853b9f
15 changed files with 138 additions and 54 deletions
+22
View File
@@ -221,6 +221,22 @@ struct ParseResult
MsgList msgs;
};
////////////////////////////////
// Context
typedef struct Context Context;
struct Context
{
// Note: Only used so far as the first fallback if the user did not preset the thread_context's arenas
// Otherwise it will just reserve its own Arena backed by chained virutal address space
AllocatorInfo backing[2];
// Its recommended that the user hooks up
// their own arena allocators to the thread context
// which will be utilized for thread local scratch arena
TCTX thread_ctx;
};
////////////////////////////////
//~ rjf: Globals
@@ -241,6 +257,12 @@ nil_node()
return &nil;
}
////////////////////////////////
// Context lifetime Functios
MD_API void init (Context* ctx);
MD_API void deinit(Context* ctx);
////////////////////////////////
//~ rjf: Message Type Functions