Initial upload

This commit is contained in:
ryanfleury
2021-01-20 11:19:34 -07:00
commit 90fc1de709
30 changed files with 5769 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
////////////////////////////////
// TODO(allen): Write commentary for all of this.
#define MD_IMPL_Alloc(ctx,size) MD_MALLOC_Alloc(ctx,size)
static void*
MD_MALLOC_Alloc(void *ctx, MD_u64 size)
{
MD_Assert(ctx == MD_MALLOC_Alloc);
return(malloc(size));
}
#define MD_IMPL_GetCtx() MD_MALLOC_GetCtx()
static void*
MD_MALLOC_GetCtx(void)
{
return(MD_MALLOC_Alloc);
}