view debug.c @ 86:a163250b8885

Update fib example to reflect language changes
author Mike Pavone <pavone@retrodev.com>
date Fri, 30 Jul 2010 23:49:39 +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;
}