Sierra Toolkit  Version of the Day
Demangle.hpp
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2010 Sandia Corporation. */
3 /* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
4 /* license for use of this work by or on behalf of the U.S. Government. */
5 /* Export of this program may require a license from the */
6 /* United States Government. */
7 /*------------------------------------------------------------------------*/
8 
9 #ifndef stk_util_environment_Demangle_hpp
10 #define stk_util_environment_Demangle_hpp
11 
12 #include <string>
13 
14 #if __GNUC__ == 3 || __GNUC__ == 4 || defined __xlC__
15 #define STK_USE_PLATFORM_DEMANGLER
16 #endif
17 
18 namespace stk_classic {
19 
29 #ifdef STK_USE_PLATFORM_DEMANGLER
30 std::string demangle(const char *symbol);
31 #else
32 const char *demangle(const char *symbol);
33 #endif
34 
35 } // namespace stk_classic
36 
37 #endif // stk_util_environment_Demangle_hpp
Sierra Toolkit.
const char * demangle(const char *symbol)
Function demangle returns the demangled C++ symbol from the mangled C++ symbol. The mangled named is ...
Definition: Demangle.cpp:103