From: Timo Sirainen Date: Sun, 21 Mar 2010 23:46:17 +0000 (+0200) Subject: Asserts now use __FUNCTION__ instead of __PRETTY_FUNCTION__. X-Git-Tag: 2.0.beta4~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16d913e621788f97ac0d2bf60d9f8bf837c292d9;p=thirdparty%2Fdovecot%2Fcore.git Asserts now use __FUNCTION__ instead of __PRETTY_FUNCTION__. With gcc these had the same output, but clang's __PRETTY_FUNCTION__ returns a larger output that's not useful. --HG-- branch : HEAD --- diff --git a/src/lib/macros.h b/src/lib/macros.h index 51480fa182..061ff78729 100644 --- a/src/lib/macros.h +++ b/src/lib/macros.h @@ -186,7 +186,7 @@ i_panic("file %s: line %d (%s): assertion failed: (%s)", \ __FILE__, \ __LINE__, \ - __PRETTY_FUNCTION__, \ + __FUNCTION__, \ #expr); }STMT_END #else /* !__GNUC__ */