view debug.c @ 38:7f05bbe82f24

Started work on adding Array support
author Mike Pavone <pavone@retrodev.com>
date Tue, 06 Oct 2009 23:13:47 -0400
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;
}