PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
current_function.h
1 #ifndef CURRENT_FUNCTION_HPP_INCLUDED
2 #define CURRENT_FUNCTION_HPP_INCLUDED
3 
4 // MS compatible compilers support #pragma once
5 
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
7 # pragma once
8 #endif
9 
10 
11 #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
12 
13 # define CURRENT_FUNCTION __PRETTY_FUNCTION__
14 
15 #elif defined(__DMC__) && (__DMC__ >= 0x810)
16 
17 # define CURRENT_FUNCTION __PRETTY_FUNCTION__
18 
19 #elif defined(__FUNCSIG__)
20 
21 # define CURRENT_FUNCTION __FUNCSIG__
22 
23 #elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500))
24 
25 # define CURRENT_FUNCTION __FUNCTION__
26 
27 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
28 
29 # define CURRENT_FUNCTION __FUNC__
30 
31 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
32 
33 # define CURRENT_FUNCTION __func__
34 
35 #else
36 
37 # define CURRENT_FUNCTION "(unknown)"
38 
39 #endif
40 
41 #endif // #ifndef BOOST_CURRENT_FUNCTION_HPP_INCLUDED
42