Skip to content

Commit

Permalink
AK: Stub out AK::demangle on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stasoid authored and AtkinsSJ committed Jan 5, 2025
1 parent ba6b5ad commit 9884cd0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion AK/Demangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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

}

Expand Down

0 comments on commit 9884cd0

Please sign in to comment.