Commit 05e2739b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

delare dmemory functions as extern C

parent 30db26a8
......@@ -10,6 +10,10 @@
#define WITH_FUNCTION_NAME
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern size_t memTotal(void);
extern void memDebug(int debug);
extern void memExitOnError(void);
......@@ -21,6 +25,10 @@ extern void *memCalloc (size_t nmemb, size_t size, const char *file, const cha
extern void *memMalloc (size_t size, const char *file, const char *functionname, int line);
extern void memFree (void *ptr, const char *file, const char *functionname, int line);
#if defined (__cplusplus)
}
#endif
#if defined WITH_FUNCTION_NAME
# define Realloc(p, s) memRealloc((p), (s), __FILE__, __func__, __LINE__)
# define Calloc(n, s) memCalloc((n), (s), __FILE__, __func__, __LINE__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment