view debug.c @ 159:d1e206ff75f9

Fix some bugs involving calling a worker object
author Mike Pavone <pavone@retrodev.com>
date Fri, 07 Jan 2011 03:17:20 -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;
}