AK: Stub out AK::demangle on Windows

This commit is contained in:
stasoid 2024-12-14 16:13:35 +05:00 committed by Sam Atkins
parent ba6b5adde3
commit 9884cd0628
Notes: github-actions[bot] 2025-01-05 15:03:36 +00:00

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,13 @@ inline ByteString demangle(StringView name)
free(demangled_name);
return string;
}
#else
inline ByteString demangle(StringView name)
{
// FIXME: Implement AK::demangle on Windows
return name;
}
#endif
}