| 25 | namespace TEngine { |
| 26 | |
| 27 | static inline std::string GetRealName(const char* name) |
| 28 | { |
| 29 | std::string result; |
| 30 | |
| 31 | char* real_name = abi::__cxa_demangle(name, nullptr, nullptr, nullptr); |
| 32 | |
| 33 | result = real_name; |
| 34 | |
| 35 | std::free(real_name); |
| 36 | |
| 37 | return result; |
| 38 | } |
| 39 | |
| 40 | class bad_any_cast : public std::bad_cast |
| 41 | { |