- HB_STMT_START { \
- if (HB_DEBUG_APPLY) \
- _hb_trace ("APPLY", __PRETTY_FUNCTION__, this, apply_depth, HB_DEBUG_APPLY); \
- } HB_STMT_END
-
-
-#define APPLY_ARG_DEF \
- hb_apply_context_t *context, \
- hb_ot_layout_context_t *layout_context, \
- hb_buffer_t *buffer, \
- unsigned int context_length HB_GNUC_UNUSED, \
- unsigned int apply_depth HB_GNUC_UNUSED
-#define APPLY_ARG \
- context, \
- layout_context, \
- buffer, \
- context_length, \
- (HB_DEBUG_APPLY ? apply_depth + 1 : 0)
+ hb_trace_t<HB_DEBUG_APPLY> trace (&context->debug_depth); \
+ trace.log ("APPLY", HB_FUNC, this);
+