diff options
author | Mukund Sivaraman <muks@banu.com> | 2009-09-23 07:12:30 +0530 |
---|---|---|
committer | Mukund Sivaraman <muks@banu.com> | 2009-09-27 08:09:22 +0530 |
commit | fc7415a5b0c53ed40a1ed64a00e1fde7f7b35646 (patch) | |
tree | dcd374e9e6f74bd4045baaaa3fc450b87303df4d | |
parent | d102ed4ed39d39cf3777825f795ee95e41407d71 (diff) | |
download | tinyproxy-fc7415a5b0c53ed40a1ed64a00e1fde7f7b35646.tar.gz tinyproxy-fc7415a5b0c53ed40a1ed64a00e1fde7f7b35646.zip |
Include debugging functions only when debug mode is used
-rw-r--r-- | src/heap.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -27,6 +27,8 @@ #include "heap.h" #include "text.h" +#ifndef NDEBUG + void *debugging_calloc (size_t nmemb, size_t size, const char *file, unsigned long line) { @@ -91,6 +93,8 @@ char *debugging_strdup (const char *s, const char *file, unsigned long line) return ptr; } +#endif /* !NDEBUG */ + /* * Allocate a block of memory in the "shared" memory region. * |