mkernel
0.0.1
Micro-kernel framework, everything as a module
memory.h
Go to the documentation of this file.
1
20
#ifndef __MEMORY_H__
21
#define __MEMORY_H__
22
23
#ifdef HAVE_CONFIG_H
24
# include "config.h"
25
#endif
26
27
#ifndef NDEBUG
28
29
#include "
memdbg.h
"
30
32
#define malloc(size) dbg_malloc(size,__FILE__,__LINE__,__DATE__,__TIME__,__func__)
33
35
#define realloc(ptr,size) dbg_realloc(ptr,size,__FILE__,__LINE__,__DATE__,__TIME__,__func__)
36
38
#define calloc(nmemb,size) dbg_calloc(nmemb,size,__FILE__,__LINE__,__DATE__,__TIME__,__func__)
39
41
#define free(ptr) dbg_free(ptr,__FILE__,__LINE__,__DATE__,__TIME__,__func__)
42
44
#define strdup(chaine) dbg_strdup(chaine,__FILE__,__LINE__,__DATE__,__TIME__,__func__)
45
47
#define asprintf(out,format,...) dbg_asprintf(out,format,__FILE__,__LINE__,__DATE__,__TIME__,__func__,__VA_ARGS__)
48
50
#define memreport() memtrack_dumpblocks()
51
52
#else
53
55
#define memreport()
56
57
#endif
/* NDEBUG */
58
#endif
/* __MEMORY_H__ */
59
memdbg.h
Memory leak tracker header.
deps
debug
memory.h
Generated by
1.9.4