[dispatch] Default debug level to 0

This commit is contained in:
Behdad Esfahbod 2020-06-18 16:53:54 -07:00
parent d7d8604ec8
commit 8d0a90ac1b
4 changed files with 10 additions and 10 deletions

View File

@ -35,7 +35,7 @@
* Dispatch
*/
template <typename Context, typename Return, unsigned int MaxDebugDepth>
template <typename Context, typename Return, unsigned int MaxDebugDepth=0>
struct hb_dispatch_context_t
{
private:

View File

@ -151,7 +151,7 @@ struct hb_subset_layout_context_t :
};
struct hb_collect_variation_indices_context_t :
hb_dispatch_context_t<hb_collect_variation_indices_context_t, hb_empty_t, 0>
hb_dispatch_context_t<hb_collect_variation_indices_context_t, hb_empty_t>
{
template <typename T>
return_t dispatch (const T &obj) { obj.collect_variation_indices (this); return hb_empty_t (); }

View File

@ -42,7 +42,7 @@ namespace OT {
struct hb_intersects_context_t :
hb_dispatch_context_t<hb_intersects_context_t, bool, 0>
hb_dispatch_context_t<hb_intersects_context_t, bool>
{
template <typename T>
return_t dispatch (const T &obj) { return obj.intersects (this->glyphs); }
@ -58,7 +58,7 @@ struct hb_intersects_context_t :
};
struct hb_closure_context_t :
hb_dispatch_context_t<hb_closure_context_t, hb_empty_t, 0>
hb_dispatch_context_t<hb_closure_context_t, hb_empty_t>
{
typedef return_t (*recurse_func_t) (hb_closure_context_t *c, unsigned int lookup_index);
template <typename T>
@ -132,7 +132,7 @@ struct hb_closure_context_t :
};
struct hb_closure_lookups_context_t :
hb_dispatch_context_t<hb_closure_lookups_context_t, hb_empty_t, 0>
hb_dispatch_context_t<hb_closure_lookups_context_t, hb_empty_t>
{
typedef return_t (*recurse_func_t) (hb_closure_lookups_context_t *c, unsigned lookup_index);
template <typename T>
@ -199,7 +199,7 @@ struct hb_closure_lookups_context_t :
};
struct hb_would_apply_context_t :
hb_dispatch_context_t<hb_would_apply_context_t, bool, 0>
hb_dispatch_context_t<hb_would_apply_context_t, bool>
{
template <typename T>
return_t dispatch (const T &obj) { return obj.would_apply (this); }
@ -224,7 +224,7 @@ struct hb_would_apply_context_t :
};
struct hb_collect_glyphs_context_t :
hb_dispatch_context_t<hb_collect_glyphs_context_t, hb_empty_t, 0>
hb_dispatch_context_t<hb_collect_glyphs_context_t, hb_empty_t>
{
typedef return_t (*recurse_func_t) (hb_collect_glyphs_context_t *c, unsigned int lookup_index);
template <typename T>
@ -302,7 +302,7 @@ struct hb_collect_glyphs_context_t :
template <typename set_t>
struct hb_collect_coverage_context_t :
hb_dispatch_context_t<hb_collect_coverage_context_t<set_t>, const Coverage &, 0>
hb_dispatch_context_t<hb_collect_coverage_context_t<set_t>, const Coverage &>
{
typedef const Coverage &return_t;
template <typename T>
@ -694,7 +694,7 @@ struct hb_ot_apply_context_t :
struct hb_get_subtables_context_t :
hb_dispatch_context_t<hb_get_subtables_context_t, hb_empty_t, 0>
hb_dispatch_context_t<hb_get_subtables_context_t, hb_empty_t>
{
template <typename Type>
static inline bool apply_to (const void *obj, OT::hb_ot_apply_context_t *c)

View File

@ -1971,7 +1971,7 @@ hb_ot_layout_get_baseline (hb_font_t *font,
struct hb_get_glyph_alternates_context_t :
hb_dispatch_context_t<hb_get_glyph_alternates_context_t, unsigned, 0>
hb_dispatch_context_t<hb_get_glyph_alternates_context_t, unsigned>
{
static return_t default_return_value () { return 0; }
bool stop_sublookup_iteration (return_t r) const { return r; }