Part of https://github.com/harfbuzz/harfbuzz/issues/1652
* Debugging.
*/
+#ifndef HB_NO_BUFFER_MESSAGE
/**
* hb_buffer_set_message_func:
* @buffer: an #hb_buffer_t.
vsnprintf (buf, sizeof (buf), fmt, ap);
return (bool) this->message_func (this, font, buf, this->message_data);
}
+#endif
unsigned int context_len[2];
/* Debugging API */
+#ifndef HB_NO_BUFFER_MESSAGE
hb_buffer_message_func_t message_func;
+#endif
void *message_data;
hb_destroy_func_t message_destroy;
{
#ifdef HB_NO_BUFFER_MESSAGE
return false;
-#endif
+#else
return unlikely (message_func);
+#endif
}
bool message (hb_font_t *font, const char *fmt, ...) HB_PRINTF_FUNC(3, 4)
{