X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FmemoryDebug.h;h=456ed2a1995b0513cdcffbd3c148c24eaf7c212d;hp=c07d494cbf03c9d9e8e1920edcd72f0c379fea2e;hb=81815ef0c1bf00e907f8be5131dc96e7dfd0dc02;hpb=3b03d79e0abdb8ed15dcc8943cf761f2a2775cf1 diff --git a/src/memoryDebug.h b/src/memoryDebug.h index c07d494..456ed2a 100644 --- a/src/memoryDebug.h +++ b/src/memoryDebug.h @@ -1,4 +1,4 @@ -/* memoryDebug.h - NeonServ v5.3 +/* memoryDebug.h - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -22,12 +22,12 @@ #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