* Add macros to enable compiling out debug code
Geoffrey Young, geoff at modperlcookbook dot org git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@18 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
@@ -46,7 +46,7 @@ int printbuf_memappend(struct printbuf *p, char *buf, int size)
|
||||
if(p->size - p->bpos <= size) {
|
||||
int new_size = max(p->size * 2, p->bpos + size + 8);
|
||||
#ifdef PRINTBUF_DEBUG
|
||||
mc_debug("printbuf_memappend: realloc "
|
||||
MC_DEBUG("printbuf_memappend: realloc "
|
||||
"bpos=%d wrsize=%d old_size=%d new_size=%d\n",
|
||||
p->bpos, size, p->size, new_size);
|
||||
#endif /* PRINTBUF_DEBUG */
|
||||
|
||||
Reference in New Issue
Block a user