dovecot-2.0: Asserts now use __FUNCTION__ instead of __PRETTY_FU...

dovecot at dovecot.org dovecot at dovecot.org
Mon Mar 22 01:46:21 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/56fd824b1d65
changeset: 10967:56fd824b1d65
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Mar 22 01:46:17 2010 +0200
description:
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.

diffstat:

 src/lib/macros.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 399f855035bc -r 56fd824b1d65 src/lib/macros.h
--- a/src/lib/macros.h	Mon Mar 22 01:45:11 2010 +0200
+++ b/src/lib/macros.h	Mon Mar 22 01:46:17 2010 +0200
@@ -186,7 +186,7 @@
        i_panic("file %s: line %d (%s): assertion failed: (%s)",		\
 		__FILE__,						\
 		__LINE__,						\
-		__PRETTY_FUNCTION__,					\
+		__FUNCTION__,					\
 		#expr);			}STMT_END
 
 #else /* !__GNUC__ */


More information about the dovecot-cvs mailing list