Files
netgen/libsrc/core/utils.cpp
Matthias Hochsteger 678b4497c2 Paje tracing
2019-01-02 18:38:03 +01:00

21 lines
654 B
C++

#include "utils.hpp"
#ifndef WIN32
#include <cxxabi.h>
#endif
namespace ngcore
{
#ifdef WIN32
// windows does demangling in typeid(T).name()
NGCORE_API std::string Demangle(const char* typeinfo) { return typeinfo; }
#else
NGCORE_API std::string Demangle(const char* typeinfo) { int status; return abi::__cxa_demangle(typeinfo,
nullptr,
nullptr,
&status); }
} // namespace ngcore
#endif