#include "Desk.Debug.h"
#include "Defs.h"




void	Desk_DeskMem_SetAllocFunctions( 
		Desk_deskmem_mallocfn	m,
		Desk_deskmem_reallocfn	r,
		Desk_deskmem_callocfn	c,
		Desk_deskmem_freefn		f,
		Desk_deskmem_functionsblock*	oldfunctions
		)
{
Desk_Debug_Assert( m);
Desk_Debug_Assert( r);
Desk_Debug_Assert( c);
Desk_Debug_Assert( f);

if (oldfunctions)	*oldfunctions = Desk_deskmem__functions;

Desk_deskmem__functions.malloc	= m;
Desk_deskmem__functions.realloc	= r;
Desk_deskmem__functions.calloc	= c;
Desk_deskmem__functions.free		= f;
}
