Include debugging functions only when debug mode is used

This commit is contained in:
Mukund Sivaraman 2009-09-23 07:12:30 +05:30
parent d102ed4ed3
commit fc7415a5b0

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.
*