提交 29ff2548 编写于 作者: B Behdad Esfahbod

Add HB_DEBUG_VERBOSE

Only affects the verbosity of function name printing right now.
上级 05686b5f
......@@ -594,6 +594,8 @@ _hb_debug_msg_va (const char *what,
if (func)
{
unsigned int func_len = strlen (func);
#ifndef HB_DEBUG_VERBOSE
/* Skip "typename" */
if (0 == strncmp (func, "typename ", 9))
func += 9;
......@@ -603,7 +605,9 @@ _hb_debug_msg_va (const char *what,
func = space + 1;
/* Skip parameter list */
const char *paren = strchr (func, '(');
unsigned int func_len = paren ? paren - func : strlen (func);
if (paren)
func_len = paren - func;
#endif
fprintf (stderr, "%.*s: ", func_len, func);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册