Mercurial > repos > rhope
view debug.c @ 179:64be565a40c6
Implement If method on List, fix Get Char to handle end of file, fix nested list pretty printing
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 18 Jun 2011 11:11:58 -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; }