Include debugging functions only when debug mode is used
This commit is contained in:
1 parent
d102ed4ed3
commit
fc7415a5b0
1 file changed
+4
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user