#if WALKERDEBUG
-# define DEBUGWALK(who) secdebug("walkers", "walk " who " %s@%p (%ld)", \
+# define DEBUGWALK(who) secinfo("walkers", "walk " who " %s@%p (%ld)", \
Debug::typeName(addr).c_str(), addr, size)
#else
# define DEBUGWALK(who) /* nothing */
};
+
//
// Walk a structure and apply a constant linear shift to all pointers
// encountered. This is useful when a structure and its deep components
}
template <class T>
-void chunkFree(const T &obj, Allocator &alloc = Allocator::standard())
+void chunkFree(T &obj, Allocator &alloc = Allocator::standard())
{
ChunkFreeWalker w(alloc);
walk(w, obj);