From 8b80cbb1dd13e2870a956825f5dafc4419b44200 Mon Sep 17 00:00:00 2001 From: Rod Sheeter Date: Wed, 7 Feb 2018 09:31:31 -0800 Subject: [PATCH] Add a subset debug category --- src/hb-debug.hh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/hb-debug.hh b/src/hb-debug.hh index 6c425f7b..c244347b 100644 --- a/src/hb-debug.hh +++ b/src/hb-debug.hh @@ -396,6 +396,18 @@ struct hb_no_trace_t { #define TRACE_SERIALIZE(this) hb_no_trace_t trace #endif +#ifndef HB_DEBUG_SUBSET +#define HB_DEBUG_SUBSET (HB_DEBUG+0) +#endif +#if HB_DEBUG_SUBSET +#define TRACE_SUBSET(this) \ + hb_auto_trace_t trace \ + (&c->debug_depth, c->get_name (), this, HB_FUNC, \ + " "); +#else +#define TRACE_SUBSET(this) hb_no_trace_t trace +#endif + #ifndef HB_DEBUG_WOULD_APPLY #define HB_DEBUG_WOULD_APPLY (HB_DEBUG+0) #endif @@ -415,6 +427,7 @@ struct hb_no_trace_t { HB_DEBUG_COLLECT_GLYPHS + \ HB_DEBUG_SANITIZE + \ HB_DEBUG_SERIALIZE + \ + HB_DEBUG_SUBSET + \ HB_DEBUG_WOULD_APPLY + \ 0) #endif -- GitLab