Include debugging functions only when debug mode is used

This commit is contained in:
Mukund Sivaraman committed 2009-09-27 08:09:22 +05:30
1 parent d102ed4ed3
commit fc7415a5b0
1 file changed
+4
+4
View File
@@ -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.
*