rearranged NeonServ code to be modular
[NeonServV5.git] / src / memoryDebug.h
index c07d494cbf03c9d9e8e1920edcd72f0c379fea2e..9a3adac767e3b589812571bd74157a3bf247367d 100644 (file)
 #define strdup(data) xstrdup (data, __FILE__, __LINE__)
 #define free(mem_ref) xfree(mem_ref)
 
-void *xmalloc(unsigned int size, const char *file, unsigned int line);
-void *xcalloc(unsigned int elements, unsigned int size, const char *file, unsigned int line);
-char *xstrdup(const char *data, const char *file, unsigned int line);
-void xfree(void *mem_ref);
+#ifndef DND_FUNCTIONS
+/* MODULAR ACCESSIBLE */ void *xmalloc(unsigned int size, const char *file, unsigned int line);
+/* MODULAR ACCESSIBLE */ void *xcalloc(unsigned int elements, unsigned int size, const char *file, unsigned int line);
+/* MODULAR ACCESSIBLE */ char *xstrdup(const char *data, const char *file, unsigned int line);
+/* MODULAR ACCESSIBLE */ void xfree(void *mem_ref);
 
-void report_mem_leak();
 void initMemoryDebug();
-
+#endif
 #endif