mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00
AK: Stub out AK::demangle on Windows
This commit is contained in:
parent
ba6b5adde3
commit
9884cd0628
Notes:
github-actions[bot]
2025-01-05 15:03:36 +00:00
Author: https://github.com/stasoid
Commit: 9884cd0628
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2914
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 12 additions and 1 deletions
|
@ -8,10 +8,14 @@
|
||||||
|
|
||||||
#include <AK/ByteString.h>
|
#include <AK/ByteString.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <cxxabi.h>
|
|
||||||
|
#ifndef AK_OS_WINDOWS
|
||||||
|
# include <cxxabi.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace AK {
|
namespace AK {
|
||||||
|
|
||||||
|
#ifndef AK_OS_WINDOWS
|
||||||
inline ByteString demangle(StringView name)
|
inline ByteString demangle(StringView name)
|
||||||
{
|
{
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
@ -21,6 +25,13 @@ inline ByteString demangle(StringView name)
|
||||||
free(demangled_name);
|
free(demangled_name);
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
inline ByteString demangle(StringView name)
|
||||||
|
{
|
||||||
|
// FIXME: Implement AK::demangle on Windows
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue