1 #ifndef CURRENT_FUNCTION_HPP_INCLUDED 2 #define CURRENT_FUNCTION_HPP_INCLUDED 6 #if defined(_MSC_VER) && (_MSC_VER >= 1020
) 11 #if defined(__GNUC__
) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000
)) || (defined(__ICC) && (__ICC >= 600
)) || defined(__ghs__) 13 # define CURRENT_FUNCTION __PRETTY_FUNCTION__ 15 #elif defined(__DMC__) && (__DMC__ >= 0x810
) 17 # define CURRENT_FUNCTION __PRETTY_FUNCTION__ 19 #elif defined(__FUNCSIG__) 21 # define CURRENT_FUNCTION __FUNCSIG__ 23 #elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600
)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500
)) 25 # define CURRENT_FUNCTION __FUNCTION__ 27 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550
) 29 # define CURRENT_FUNCTION __FUNC__ 31 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901
) 33 # define CURRENT_FUNCTION __func__ 37 # define CURRENT_FUNCTION "(unknown)"