mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-17 05:06:46 +00:00
AK: Stub out AK::demangle on Windows
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user