mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-13 07:52:22 -07:00
20 lines
380 B
C
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);
|
|
}
|