Pitifully simple leak checker for unit tests. Just verifies that allocations/deallocations match over an RAII region.
More...
#include <malloc.h>
#include <unordered_set>
#include <iostream>
#include <cassert>
Go to the source code of this file.
|
| Athena_test |
| functions & macros to test the difference between floats
|
|
Pitifully simple leak checker for unit tests. Just verifies that allocations/deallocations match over an RAII region.
- Author
- scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
- Date
- Nov, 2016 Overrides the standard new/delete functions, so should not be #included from any code that would be included in a library.
Definition in file leakcheck.h.
◆ deleteImpl()
void deleteImpl |
( |
void * |
ptr | ) |
|
|
noexcept |
◆ newImpl()
void* newImpl |
( |
std::size_t |
size | ) |
|
◆ operator delete() [1/2]
void operator delete |
( |
void * |
ptr | ) |
|
|
noexcept |
◆ operator delete() [2/2]
void operator delete |
( |
void * |
ptr, |
|
|
size_t |
|
|
) |
| |
|
noexcept |
◆ operator new()
void* operator new |
( |
std::size_t |
size | ) |
|