knotkit/lib/refcount.cpp
2011-12-09 15:50:25 -05:00

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