Skip to content

Commit

Permalink
__func__ doesn't make sense (#469)
Browse files Browse the repository at this point in the history
__func__ doesn't make sense since we have left c++11 in the dust
  • Loading branch information
KjellKod authored Nov 29, 2022
1 parent 6f6da0e commit 881e6da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/g3log/g3log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 881e6da

Please sign in to comment.