Include debugging functions only when debug mode is used
This commit is contained in:
parent
d102ed4ed3
commit
fc7415a5b0
@ -27,6 +27,8 @@
|
|||||||
#include "heap.h"
|
#include "heap.h"
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
|
||||||
void *debugging_calloc (size_t nmemb, size_t size, const char *file,
|
void *debugging_calloc (size_t nmemb, size_t size, const char *file,
|
||||||
unsigned long line)
|
unsigned long line)
|
||||||
{
|
{
|
||||||
@ -91,6 +93,8 @@ char *debugging_strdup (const char *s, const char *file, unsigned long line)
|
|||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* !NDEBUG */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocate a block of memory in the "shared" memory region.
|
* Allocate a block of memory in the "shared" memory region.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user