mirror of
https://github.com/Ed94/metadesk.git
synced 2026-07-30 11:20:06 +00:00
Initial upload
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user