Skip to content

Commit

Permalink
remove msvc class or struct prefix in util::demangle
Browse files Browse the repository at this point in the history
  • Loading branch information
jere8184 committed Jan 9, 2025
1 parent fe60b2b commit e414cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libopenage/util/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ std::string demangle(const char *symbol) {
// TODO: demangle names for MSVC; Possibly using UnDecorateSymbolName
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms681400(v=vs.85).aspx
// Could it be that MSVC's typeid(T).name() already returns a demangled name? It seems that .raw_name() returns the mangled name
return symbol;
return strstr(symbol, " ") + 1;
#else
int status;
char *buf = abi::__cxa_demangle(symbol, nullptr, nullptr, &status);
Expand Down

0 comments on commit e414cb4

Please sign in to comment.