From 881e6da43971acb1f0eea9261f4b91851c61c0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjell=20Hedstr=C3=B6m?= Date: Tue, 29 Nov 2022 09:00:46 -0700 Subject: [PATCH] __func__ doesn't make sense (#469) __func__ doesn't make sense since we have left c++11 in the dust --- src/g3log/g3log.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g3log/g3log.hpp b/src/g3log/g3log.hpp index 1db5bdd..87b9d7a 100644 --- a/src/g3log/g3log.hpp +++ b/src/g3log/g3log.hpp @@ -34,8 +34,8 @@ #define G3LOG_PRETTY_FUNCTION __PRETTY_FUNCTION__ #elif defined(_MSC_VER) // Microsoft #define G3LOG_PRETTY_FUNCTION __FUNCSIG__ -#else // Fallback to c99 / c++11 -#define G3LOG_PRETTY_FUNCTION __func__ +#else // __func__ is fallback to c99 / c++11, where that doesn't matter so __FUNCTION__ is the choice +#define G3LOG_PRETTY_FUNCTION __FUNCTION__ #endif // thread_local doesn't exist before VS2013