view debug.c @ 164:429afd920a23

Allow sending and receiving arrays of arbitrary objects rather than just UInt8s
author Mike Pavone <pavone@retrodev.com>
date Mon, 10 Jan 2011 00:25:35 -0500
parents 76568becd6d6
children
line wrap: on
line source

#include <stdlib.h>
#include "debugmacros.h"

void * debug_malloc(size_t size, char * msg)
{
	void * ptr = malloc(size);
	DEBUGPRINTF("malloc: %X (%X bytes), %s\n", ptr, size, msg);
	return ptr;
}