Mercurial > repos > rhope
view debug.c @ 104:2d2da148d844
Performance improvement for string comparisons
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 25 Aug 2010 03:19:57 +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; }