Mercurial > repos > rhope
view debug.c @ 82:2e2e55fc12f9
Fix bug with conditionally assigning a literal or input to a named pipe
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 27 Jul 2010 15:23:32 -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; }