Don't print out full path in assertions

This commit is contained in:
Přemysl Eric Janouch 2015-05-07 08:33:15 +02:00
parent 37005cc443
commit 70f12a8a7d
1 changed files with 3 additions and 0 deletions

View File

@ -187,6 +187,9 @@ static void
assertion_failure_handler (bool is_fatal, const char *file, int line,
const char *function, const char *condition)
{
const char *slash = strrchr (file, '/');
if (slash)
file = slash + 1;
if (is_fatal)
{
print_fatal ("assertion failed [%s:%d in function %s]: %s",