view debug.c @ 23:0534bb8ee7ad

Added beginnings of graphical editor prototype
author Mike Pavone <pavone@retrodev.com>
date Wed, 24 Jun 2009 20:05:21 +0000
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;
}