[ot] Debug get_coverage
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 13 Dec 2014 04:43:18 +0000 (20:43 -0800)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 13 Dec 2014 04:43:18 +0000 (20:43 -0800)
src/hb-ot-layout-gsubgpos-private.hh

index 0d4a10a..6ff15d2 100644 (file)
@@ -228,10 +228,14 @@ struct hb_collect_glyphs_context_t
 
 
 
+#ifndef HB_DEBUG_GET_COVERAGE
+#define HB_DEBUG_GET_COVERAGE (HB_DEBUG+0)
+#endif
+
 struct hb_get_coverage_context_t
 {
   inline const char *get_name (void) { return "GET_COVERAGE"; }
-  static const unsigned int max_debug_depth = 0;
+  static const unsigned int max_debug_depth = HB_DEBUG_GET_COVERAGE;
   typedef const Coverage &return_t;
   template <typename T>
   inline return_t dispatch (const T &obj) { return obj.get_coverage (); }