~emersion/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Use __func__ instead of __PRETTY_FUNCTION__

Details
Message ID
<20221214003950.21746-1-ismael@iodev.co.uk>
DKIM signature
missing
Download raw message
Patch: +3 -3
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 src/basic/macro.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/basic/macro.h b/src/basic/macro.h
index 84817b4132ba..ae5f45db4700 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -205,12 +205,12 @@ static inline int __coverity_check__(int condition) {
#define assert_message_se(expr, message)                                \
        do {                                                            \
                if (_unlikely_(!(expr)))                                \
                        log_assert_failed(message, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
                        log_assert_failed(message, __FILE__, __LINE__, __func__); \
        } while (false)

#define assert_log(expr, message) ((_likely_(expr))                     \
        ? (true)                                                        \
        : (log_assert_failed_return(message, __FILE__, __LINE__, __PRETTY_FUNCTION__), false))
        : (log_assert_failed_return(message, __FILE__, __LINE__, __func__), false))

#endif  /* __COVERITY__ */

@@ -226,7 +226,7 @@ static inline int __coverity_check__(int condition) {

#define assert_not_reached(t)                                           \
        do {                                                            \
                log_assert_failed_unreachable(t, __FILE__, __LINE__, __PRETTY_FUNCTION__); \
                log_assert_failed_unreachable(t, __FILE__, __LINE__, __func__); \
        } while (false)

#define assert_cc(expr)                                                 \
-- 
2.38.1
Reply to thread Export thread (mbox)