Files
metadesk/source/md_malloc.c
T
2021-01-20 11:19:34 -07:00

20 lines
380 B
C

////////////////////////////////
// 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);
}