This commit is contained in:
stasoid 2025-01-02 11:40:21 +00:00 committed by GitHub
commit 814a0f4351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,10 +8,14 @@
#include <AK/ByteString.h>
#include <AK/StringView.h>
#include <cxxabi.h>
#ifndef AK_OS_WINDOWS
# include <cxxabi.h>
#endif
namespace AK {
#ifndef AK_OS_WINDOWS
inline ByteString demangle(StringView name)
{
int status = 0;
@ -21,6 +25,12 @@ inline ByteString demangle(StringView name)
free(demangled_name);
return string;
}
#else
inline ByteString demangle(StringView name)
{
return name;
}
#endif
}