Don't print out full path in assertions
This commit is contained in:
parent
37005cc443
commit
70f12a8a7d
@ -187,6 +187,9 @@ static void
|
|||||||
assertion_failure_handler (bool is_fatal, const char *file, int line,
|
assertion_failure_handler (bool is_fatal, const char *file, int line,
|
||||||
const char *function, const char *condition)
|
const char *function, const char *condition)
|
||||||
{
|
{
|
||||||
|
const char *slash = strrchr (file, '/');
|
||||||
|
if (slash)
|
||||||
|
file = slash + 1;
|
||||||
if (is_fatal)
|
if (is_fatal)
|
||||||
{
|
{
|
||||||
print_fatal ("assertion failed [%s:%d in function %s]: %s",
|
print_fatal ("assertion failed [%s:%d in function %s]: %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user