#include <stdlib.h>
#include <stdio.h>
Go to the source code of this file.
|
| edbee |
| Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
|
|
|
void * | debug_malloc (size_t size, const char *file, const int line) |
| Copyright 2011-2013 - Reliable Bits Software by Blommers IT. More...
|
|
void | debug_free (void *p, const char *file, const int line) |
| frees the given pointer More...
|
|
void * | operator new (size_t size, const char *file, const int line) |
| the new operator More...
|
|
void | operator delete (void *p, const char *file, const int line) |
| th delete operator More...
|
|
void | operator delete (void *p) throw () |
| the delete operator More...
|
|
void * | operator new[] (size_t size, const char *file, const int line) |
| the new array operator More...
|
|
void | operator delete[] (void *p, const char *file, const int line) |
| the delete array operator More...
|
|
void | operator delete[] (void *p) throw () |
| the delete array operator More...
|
|
void | edbee::pause_memleak_detection (bool value) |
| pauses the memoryleak detection More...
|
|
◆ debug_new
#define debug_new new(__FILE__, __LINE__) |
◆ free
#define free |
( |
|
A | ) |
debug_free((A), __FILE__, __LINE__) |
◆ malloc
◆ new
◆ debug_free()
void debug_free |
( |
void * |
p, |
|
|
const char * |
file, |
|
|
const int |
line |
|
) |
| |
frees the given pointer
- Parameters
-
p | the pointer to free |
file | the file which call originated from |
line | the linenumber of the delete |
- Todo:
- : This doesn't work very good. It sees to many free that are NOT allocated by us
- Todo:
- : This doesn't work very good. It sees to many free that are NOT allocated by us
◆ debug_malloc()
void* debug_malloc |
( |
size_t |
size, |
|
|
const char * |
file, |
|
|
const int |
line |
|
) |
| |
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Logs a malloc operation.
All Rights Reserved. Author Rick Blommers
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
- Parameters
-
size | the size of reseved bytes |
file | the file of the malloc |
line | the line number of the allocation |
◆ operator delete() [1/2]
void operator delete |
( |
void * |
p, |
|
|
const char * |
file, |
|
|
const int |
line |
|
) |
| |
◆ operator delete() [2/2]
void operator delete |
( |
void * |
p | ) |
|
throw | ( | |
| ) | | |
◆ operator delete[]() [1/2]
void operator delete[] |
( |
void * |
p, |
|
|
const char * |
file, |
|
|
const int |
line |
|
) |
| |
the delete array operator
◆ operator delete[]() [2/2]
void operator delete[] |
( |
void * |
p | ) |
|
throw | ( | |
| ) | | |
the delete array operator
◆ operator new()
void* operator new |
( |
size_t |
size, |
|
|
const char * |
file, |
|
|
const int |
line |
|
) |
| |
◆ operator new[]()
void* operator new[] |
( |
size_t |
size, |
|
|
const char * |
file, |
|
|
const int |
line |
|
) |
| |