[pango] [HB] Improve debug output
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] [HB] Improve debug output
- Date: Thu, 6 Aug 2009 14:42:55 +0000 (UTC)
commit 20588ed32aadba157bb2fcf1c8b2447890854234
Author: Behdad Esfahbod <behdad behdad org>
Date: Thu Aug 6 10:27:38 2009 -0400
[HB] Improve debug output
pango/opentype/hb-open-type-private.hh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/pango/opentype/hb-open-type-private.hh b/pango/opentype/hb-open-type-private.hh
index 17fec5a..8c01c68 100644
--- a/pango/opentype/hb-open-type-private.hh
+++ b/pango/opentype/hb-open-type-private.hh
@@ -203,15 +203,16 @@ struct Null <Type> \
* Sanitize
*/
-#if HB_DEBUG >= 5
+#if HB_DEBUG
#define SANITIZE_DEBUG_ARG_DEF , unsigned int sanitize_depth
#define SANITIZE_DEBUG_ARG , sanitize_depth + 1
-#define SANITIZE_DEBUG_ARG_INIT , 0
+#define SANITIZE_DEBUG_ARG_INIT , 1
#define SANITIZE_DEBUG() \
HB_STMT_START { \
+ if (sanitize_depth < HB_DEBUG) \
fprintf (stderr, "SANITIZE(%p) %-*d-> %s\n", \
(CONST_CHARP (this) == NullPool) ? 0 : this, \
- sanitize_depth+1, sanitize_depth, \
+ sanitize_depth, sanitize_depth, \
__PRETTY_FUNCTION__); \
} HB_STMT_END
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]