summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 13:28:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 13:28:07 +0000
commit5d407fb44c759524881712a80febb86b4506ddbf (patch)
treef0f426e645518a859ad25284f478854818a92da8 /include
parent009c5b0562c280743033ea6ca2e673201a8e218c (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h2
1 files changed, 2 insertions, 0 deletions
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<typename T> inline std::string ConvToStr(const T &in)
{
std::stringstream tmp;