Mercurial > repos > rhope
view debug.c @ 95:f4fd8962c385
Cleaned up binary trees benchmark, made memory allocator somewhat configurable at compile time
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 02 Aug 2010 01:55:56 -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; }