|
#define | malloc(size) dbg_malloc(size,__FILE__,__LINE__,__DATE__,__TIME__,__func__) |
| Same syntaxt and same behavior than regular malloc function, with memory leaks tracking. More...
|
|
#define | realloc(ptr, size) dbg_realloc(ptr,size,__FILE__,__LINE__,__DATE__,__TIME__,__func__) |
| Same syntaxt and same behavior than regular realloc function, with memory leaks tracking. More...
|
|
#define | calloc(nmemb, size) dbg_calloc(nmemb,size,__FILE__,__LINE__,__DATE__,__TIME__,__func__) |
| Same syntaxt and same behavior than regular calloc function, with memory leaks tracking. More...
|
|
#define | free(ptr) dbg_free(ptr,__FILE__,__LINE__,__DATE__,__TIME__,__func__) |
| Same syntaxt and same behavior than regular free function, with memory leaks tracking. More...
|
|
#define | strdup(chaine) dbg_strdup(chaine,__FILE__,__LINE__,__DATE__,__TIME__,__func__) |
| Same syntaxt and same behavior than regular strdup function, with memory leaks tracking. More...
|
|
#define | asprintf(out, format, ...) dbg_asprintf(out,format,__FILE__,__LINE__,__DATE__,__TIME__,__func__,__VA_ARGS__) |
| Same syntaxt and same behavior than regular asprintf function, with memory leaks tracking. More...
|
|
#define | memreport() memtrack_dumpblocks() |
| Prints a list of currently allocated blocks on stderr. More...
|
|
Tracks memory allocation and leaks when compiled without NDEBUG.
- Date
- 25/09/2006
- Author
- François Cerbelle (Fanfan), franc.nosp@m.ois@.nosp@m.cerbe.nosp@m.lle..nosp@m.net
- Copyright
- Copyright (c) 2017-2024, François Cerbelle
Originally inspired by "L'art du code", Steve Maguire, Microsoft Press This header needs to be included after most of the standard headers, ideally the last one.
Definition in file memory.h.