Skip to content

Commit

Permalink
replace __PRETTY_FUNCTION__ with __func__ for increased portability
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Apr 5, 2018
1 parent 5f5f623 commit 190d064
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions loguru.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,6 @@ Website: www.ilikebigbits.com
#define LOGURU_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1))
#endif

#if defined(_MSC_VER) && !defined(__PRETTY_FUNCTION__)
#define __PRETTY_FUNCTION__ __FUNCTION__
#endif

#if LOGURU_USE_FMTLIB
#include <fmt/format.h>
#endif
Expand Down Expand Up @@ -906,7 +902,7 @@ namespace loguru
#define LOG_SCOPE_F(verbosity_name, ...) \
VLOG_SCOPE_F(loguru::Verbosity_ ## verbosity_name, __VA_ARGS__)

#define LOG_SCOPE_FUNCTION(verbosity_name) LOG_SCOPE_F(verbosity_name, __PRETTY_FUNCTION__)
#define LOG_SCOPE_FUNCTION(verbosity_name) LOG_SCOPE_F(verbosity_name, __func__)

// -----------------------------------------------
// ABORT_F macro. Usage: ABORT_F("Cause of error: %s", error_str);
Expand Down

0 comments on commit 190d064

Please sign in to comment.