提交 ae2e2b06 编写于 作者: B Behdad Esfahbod

Fix partial tracing debug builds

上级 9daa88cd
...@@ -220,8 +220,8 @@ template <> ...@@ -220,8 +220,8 @@ template <>
{} {}
template <int max_level, typename ret_t> template <int max_level, typename ret_t>
struct hb_auto_trace_t { struct hb_auto_trace_t
{
explicit inline hb_auto_trace_t (unsigned int *plevel_, explicit inline hb_auto_trace_t (unsigned int *plevel_,
const char *what_, const char *what_,
const void *obj_, const void *obj_,
...@@ -269,7 +269,17 @@ struct hb_auto_trace_t { ...@@ -269,7 +269,17 @@ struct hb_auto_trace_t {
bool returned; bool returned;
}; };
template <typename ret_t> /* Make sure we don't use hb_auto_trace_t when not tracing. */ template <typename ret_t> /* Make sure we don't use hb_auto_trace_t when not tracing. */
struct hb_auto_trace_t<0, ret_t>; struct hb_auto_trace_t<0, ret_t>
{
explicit inline hb_auto_trace_t (unsigned int *plevel_,
const char *what_,
const void *obj_,
const char *func,
const char *message,
...) HB_PRINTF_FUNC(6, 7) {}
inline ret_t ret (ret_t v, unsigned int line HB_UNUSED = 0) { return v; }
};
/* For disabled tracing; optimize out everything. /* For disabled tracing; optimize out everything.
* https://github.com/harfbuzz/harfbuzz/pull/605 */ * https://github.com/harfbuzz/harfbuzz/pull/605 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册