From 5d407fb44c759524881712a80febb86b4506ddbf Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 24 Apr 2006 13:28:07 +0000 Subject: delete operator tracking in debug mode (using a macro -- live with it.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/inspircd.h b/include/inspircd.h index ecd09964b..3acd1b30f 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -42,6 +42,8 @@ */ #define IS_SINGLE(x,y) ( (*x == y) && (*(x+1) == 0) ) +#define DELETE(x) { log(DEBUG,__FILE__" ("__LINE__"): delete()"); delete x; } + template inline std::string ConvToStr(const T &in) { std::stringstream tmp; -- cgit v1.2.3