added gnutls backend and moved backend code into new files
[ircu2.10.12-pk.git] / ircd / ircd_alloc.c
index 62944c5abfb09ac0802596096848387ecd80613f..1fc87fa8769219b84d942d9b389a5cc6dbd7f6eb 100644 (file)
 #include "config.h"
 
 #include "ircd_alloc.h"
+#include "ircd_log.h"
 #include "ircd_string.h"
 #include "s_debug.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 static void nomem_handler(void);
@@ -56,6 +57,7 @@ set_nomem_handler(OutOfMemoryHandler handler)
   noMemHandler = handler;
 }
 
+#ifndef MDEBUG
 /** Allocate memory.
  * @param[in] size Number of bytes to allocate.
  * @param[in] x Type of allocation (ignored).
@@ -100,3 +102,4 @@ void* DoRealloc(void *orig, size_t size, const char *file, int line)
     (*noMemHandler)();
   return t;
 }
+#endif