From fc7415a5b0c53ed40a1ed64a00e1fde7f7b35646 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 23 Sep 2009 07:12:30 +0530 Subject: Include debugging functions only when debug mode is used --- src/heap.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/heap.c b/src/heap.c index ba25e7e..e71b9ab 100644 --- a/src/heap.c +++ b/src/heap.c @@ -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. * -- cgit v1.2.3