[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Konversation] 909f2ca: Add some console output debugging macros.
From: Eli MacKenzie <argonel () gmail ! com>
Date: 2010-07-01 13:27:50
Message-ID: 20100701132750.BFC47BB56F7 () projects ! kde ! org
[Download RAW message or body]
A konversation/konvidebug.h [License: GPL(v2)(wrongaddress)]
commit 909f2ca941e8a8134a6d7f0aae0212a0056ff1f0
Author: Eli MacKenzie <argonel@gmail.com>
Date: Fri Aug 13 14:00:53 2004 +0000
Add some console output debugging macros.
svn path=/trunk/kdeextragear-2/konversation/; revision=337719
diff --git a/konversation/konvidebug.h b/konversation/konvidebug.h
new file mode 100644
index 0000000..d8d6263
--- /dev/null
+++ b/konversation/konvidebug.h
@@ -0,0 +1,32 @@
+/*************************************************************************
+ * Copyright (C) 2004 by Eli MacKenzie *
+ * argonel@sympatico.ca *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+**************************************************************************/
+
+#include <kdebug.h>
+
+#define KX kdDebug()
+#define KY kndDebug()
+
+#define _S(x) #x << ": " << (x) << ", "
+#define _T(x) (x) << ", "
+
+#define LOON __LINE__ << ' '
+#define FLOON __FILE__ << ' ' << __LINE__ << ' '
+
+#define SHOW KX << FLOON << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic