MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
current_function.hpp
Go to the documentation of this file.
1 #ifndef SIMPLE_CURRENT_FUNCTION_HPP_INCLUDED
2 #define SIMPLE_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 // Modified boost/current_function.hpp
12 //
13 // SIMPLE_CURRENT_FUNCTION
14 //
15 // Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
16 // Copyright (c) 2013 Dilawar Singh
17 //
18 // Distributed under the Boost Software License, Version 1.0. (See
19 // accompanying file LICENSE_1_0.txt or copy at
20 // http://www.boost.org/LICENSE_1_0.txt)
21 //
22 // http://www.boost.org/libs/utility/current_function.html
23 //
24 // LOG: Orginal from boost libraries.
25 // Modified by Dilawar Singh. It's part of moose now.
26 
27 namespace moose
28 {
29 
30 namespace detail
31 {
32 
34 {
35 
36 #if defined(__GNUC__) || (defined(__MWERKS__) && (__MWERKS__ >= 0x3000)) || (defined(__ICC) && (__ICC >= 600)) || defined(__ghs__)
37 
38 # define SIMPLE_CURRENT_FUNCTION __PRETTY_FUNCTION__
39 
40 #elif defined(__DMC__) && (__DMC__ >= 0x810)
41 
42 # define SIMPLE_CURRENT_FUNCTION __PRETTY_FUNCTION__
43 
44 #elif defined(__FUNCSIG__)
45 
46 # define SIMPLE_CURRENT_FUNCTION __FUNCSIG__
47 
48 #elif (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 600)) || (defined(__IBMCPP__) && (__IBMCPP__ >= 500))
49 
50 # define SIMPLE_CURRENT_FUNCTION __FUNCTION__
51 
52 #elif defined(__BORLANDC__) && (__BORLANDC__ >= 0x550)
53 
54 # define SIMPLE_CURRENT_FUNCTION __FUNC__
55 
56 #elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
57 
58 # define SIMPLE_CURRENT_FUNCTION __func__
59 
60 #else
61 
62 # define SIMPLE_CURRENT_FUNCTION "(unknown)"
63 
64 #endif
65 
66 }
67 
68 } // namespace detail
69 
70 } // namespace moose
71 
72 #endif // #ifndef SIMPLE_CURRENT_FUNCTION_HPP_INCLUDED
73 
void current_function_helper()