dcbe4127bd
now deprecated SVN repository.
26 lines
282 B
C++
26 lines
282 B
C++
|
|
#include <lib/lib.h>
|
|
|
|
#ifndef NDEBUG
|
|
uint64 allocations = 0;
|
|
uint64 deallocations = 0;
|
|
|
|
class finalize
|
|
{
|
|
public:
|
|
finalize ();
|
|
~finalize ();
|
|
};
|
|
|
|
finalize::finalize ()
|
|
{
|
|
}
|
|
|
|
finalize::~finalize ()
|
|
{
|
|
// assert (allocations == deallocations);
|
|
}
|
|
|
|
static finalize finalizer;
|
|
#endif
|