1#pragma once
2
3#include <string>
4
5
6/** Demangles C++ symbol name.
7 * When demangling fails, returns the original name and sets status to non-zero.
8 * TODO: Write msvc version (now returns the same string)
9 */
10std::string demangle(const char * name, int & status);
11
12inline std::string demangle(const char * name)
13{
14 int status = 0;
15 return demangle(name, status);
16}
17