mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05: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: https://github.com/LadybirdBrowser/ladybird/commit/9884cd06283 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/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
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue