[rhythmbox] add macro for checking if the current function will output debug info
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] add macro for checking if the current function will output debug info
- Date: Wed, 28 Jan 2015 22:33:51 +0000 (UTC)
commit 32d9e53dd9287eb0a77704c28a6211a27e70f8c7
Author: Jonathan Matthew <jonathan d14n org>
Date: Mon Jan 5 09:04:31 2015 +1000
add macro for checking if the current function will output debug info
lib/rb-debug.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/rb-debug.h b/lib/rb-debug.h
index bcdbe48..7515af7 100644
--- a/lib/rb-debug.h
+++ b/lib/rb-debug.h
@@ -36,8 +36,10 @@ G_BEGIN_DECLS
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define rb_debug(...) rb_debug_realf (__func__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
+#define rb_debug_here() rb_debug_matches (__func__, __FILE__)
#elif defined(__GNUC__) && __GNUC__ >= 3
#define rb_debug(...) rb_debug_realf (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
+#define rb_debug_here() rb_debug_matches (__FUNCTION__, __FILE__)
#else
#define rb_debug
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]