[evolution-rss] Add debug headers



commit 99d6b7236831fd100a2fe3319c68fa98e776e8e4
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Dec 29 11:53:08 2009 +0200

    Add debug headers

 src/debug.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/debug.h b/src/debug.h
new file mode 100644
index 0000000..2a80610
--- /dev/null
+++ b/src/debug.h
@@ -0,0 +1,14 @@
+
+#ifndef __DEBUG_H__
+#define __DEBUG_H__ 1
+
+#define d(f, x...) if (rss_verbose_debug) { g_print("%s(%d) %s():", __FILE__, __LINE__, __FUNCTION__);\
+                        g_print(f, ## x);\
+                        g_print("\n");}
+
+#define dp(f, x...) { g_print("%s(%d) %s():", __FILE__, __LINE__, __FUNCTION__);\
+                        g_print(f, ## x);\
+                        g_print("\n");}
+
+#endif /*__DEBUG_H__*/
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]