From be460c5602fe4ec06938b3444911cd99020b7a4d Mon Sep 17 00:00:00 2001 From: Johannes Kapfhammer Date: Thu, 10 Oct 2019 15:23:10 +0200 Subject: [PATCH] use consistent function name --- include/bits/soi-dbg.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bits/soi-dbg.hpp b/include/bits/soi-dbg.hpp index 13bece5..fbde5ab 100644 --- a/include/bits/soi-dbg.hpp +++ b/include/bits/soi-dbg.hpp @@ -193,7 +193,7 @@ auto dbg_print(const char (&msg)[N], std::string const &, char const *file, return msg; } -void dbg_print_status(char const *file, int line, char const *function_name) { +void dbg_print_status(char const *file, int line, std::string const& function_name) { std::cerr << ANSI_VALUE << "[" << file << ":" << line << " (" << function_name << ")]" << ANSI_RESET << '\n'; } @@ -222,7 +222,7 @@ template T &&identity(T &&t) { return std::forward(t); } #endif #define SOI_DBG_IMPL_0() \ - soi::detail::dbg_print_status(__FILE__, __LINE__, __func__) + soi::detail::dbg_print_status(__FILE__, __LINE__, soi::detail::extract_method_name(__PRETTY_FUNCTION__)) #define SOI_DBG_IMPL_1(...) \ soi::detail::dbg_print( \ (__VA_ARGS__), \