]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Asserts now use __FUNCTION__ instead of __PRETTY_FUNCTION__.
authorTimo Sirainen <tss@iki.fi>
Sun, 21 Mar 2010 23:46:17 +0000 (01:46 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 21 Mar 2010 23:46:17 +0000 (01:46 +0200)
With gcc these had the same output, but clang's __PRETTY_FUNCTION__ returns
a larger output that's not useful.

--HG--
branch : HEAD

src/lib/macros.h

index 51480fa1827e2566e82f1f0314413947c7461d8f..061ff78729906972bd51612d800d3f5391e243e2 100644 (file)
        i_panic("file %s: line %d (%s): assertion failed: (%s)",                \
                __FILE__,                                               \
                __LINE__,                                               \
-               __PRETTY_FUNCTION__,                                    \
+               __FUNCTION__,                                   \
                #expr);                 }STMT_END
 
 #else /* !__GNUC__ */