Mercurial > repos > rhope
view debug.c @ 89:5a195ee08eac
Fix memory leak and bug that was preventing First@Dictionary from working properly
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 31 Jul 2010 00:19:15 -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; }