summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
65e3357)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4974
e03df62e-2008-0410-955e-
edbf42e46eb7
/** Delete a pointer, and NULL its value
*/
/** Delete a pointer, and NULL its value
*/
-#define DELETE(x) {if (x) { delete x; x = NULL; }}
+template<typename T> void DELETE(T* x)
+{
+ delete x;
+ x = NULL;
+}
/** Template function to convert any input type to std::string
*/
/** Template function to convert any input type to std::string
*/