Sierra Toolkit Version of the Day
Demangle.hpp
00001 /*------------------------------------------------------------------------*/
00002 /*                 Copyright 2010 Sandia Corporation.                     */
00003 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00004 /*  license for use of this work by or on behalf of the U.S. Government.  */
00005 /*  Export of this program may require a license from the                 */
00006 /*  United States Government.                                             */
00007 /*------------------------------------------------------------------------*/
00008 
00009 #ifndef stk_util_environment_Demangle_hpp
00010 #define stk_util_environment_Demangle_hpp
00011 
00012 #include <string>
00013 
00014 #if __GNUC__ == 3 || __GNUC__ == 4 || defined __xlC__
00015 #define STK_USE_PLATFORM_DEMANGLER
00016 #endif
00017 
00018 namespace stk {
00019 
00029 #ifdef STK_USE_PLATFORM_DEMANGLER
00030 std::string demangle(const char *symbol);
00031 #else
00032 const char *demangle(const char *symbol);
00033 #endif
00034 
00035 } // namespace stk
00036 
00037 #endif // stk_util_environment_Demangle_hpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines