summaryrefslogtreecommitdiff
path: root/boost/current_function.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/current_function.hpp')
-rw-r--r--boost/current_function.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/boost/current_function.hpp b/boost/current_function.hpp
index 5c113f8093..86955cb041 100644
--- a/boost/current_function.hpp
+++ b/boost/current_function.hpp
@@ -28,7 +28,11 @@ namespace detail
inline void current_function_helper()
{
-#if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
+#if defined( BOOST_DISABLE_CURRENT_FUNCTION )
+
+# define BOOST_CURRENT_FUNCTION "(unknown)"
+
+#elif defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
# define BOOST_CURRENT_FUNCTION __PRETTY_FUNCTION__