Improve debug log format in presence of templates

This commit is contained in:
Behdad Esfahbod 2012-11-23 17:32:00 -05:00
parent 2c53bd3c3e
commit adf7758a27
1 changed files with 5 additions and 1 deletions

View File

@ -588,7 +588,11 @@ _hb_debug_msg_va (const char *what,
} else
fprintf (stderr, " " VRBAR LBAR);
if (func) {
if (func)
{
/* Skip "typename" */
if (0 == strncmp (func, "typename ", 9))
func += 9;
/* Skip return type */
const char *space = strchr (func, ' ');
if (space)