30 #pragma warning (push)
31 #pragma warning (disable:4091) // warning C4091: 'typedef ': ignored on left of '' when no variable is declared
47 static const unsigned BufferSize = 1024;
48 static char Buffer[BufferSize] = {};
51 int written = UnDecorateSymbolName(name, Buffer, BufferSize - 1, UNDNAME_COMPLETE);
52 Buffer[written] =
'\0';
56 char* demangled = abi::__cxa_demangle(name,
nullptr, &len, &status);
58 strncpy(Buffer, demangled, BufferSize - 1);
59 Buffer[BufferSize - 1] =
'\0';