view debug.c @ 170:ac5c2d78663f

Inline calls to If@Boolean when static type info is present
author Mike Pavone <pavone@retrodev.com>
date Sun, 08 May 2011 18:21:19 -0700
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;
}