Add HB_DEBUG_VERBOSE
Only affects the verbosity of function name printing right now.
This commit is contained in:
parent
05686b5f69
commit
29ff254815
|
@ -594,6 +594,8 @@ _hb_debug_msg_va (const char *what,
|
||||||
|
|
||||||
if (func)
|
if (func)
|
||||||
{
|
{
|
||||||
|
unsigned int func_len = strlen (func);
|
||||||
|
#ifndef HB_DEBUG_VERBOSE
|
||||||
/* Skip "typename" */
|
/* Skip "typename" */
|
||||||
if (0 == strncmp (func, "typename ", 9))
|
if (0 == strncmp (func, "typename ", 9))
|
||||||
func += 9;
|
func += 9;
|
||||||
|
@ -603,7 +605,9 @@ _hb_debug_msg_va (const char *what,
|
||||||
func = space + 1;
|
func = space + 1;
|
||||||
/* Skip parameter list */
|
/* Skip parameter list */
|
||||||
const char *paren = strchr (func, '(');
|
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);
|
fprintf (stderr, "%.*s: ", func_len, func);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue