1 #include <ozulis/core/assert.hh>
3 #include "ref-counted-object.hh"
9 RefCountedObject::~RefCountedObject()
14 RefCountedObject::use()
17 printf("\e[0;32m%s:%p %d\e[m\n", __PRETTY_FUNCTION__
, this, refCount_
);
21 RefCountedObject::release()
23 assert(refCount_
> 0);
25 printf("\e[0;31m%s:%p %d\e[m\n", __PRETTY_FUNCTION__
, this, refCount_
);