Skip to content

Commit

Permalink
Fix windows demangle
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 22, 2023
1 parent 6ce07e9 commit f099a33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/demangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ namespace util {
}

std::string demangle(const char* symbol) {
// If the symbol is null then just return an empty string
if (symbol == nullptr) {
return "";
}
// If the symbol is the empty string then just return it
if (symbol != nullptr && symbol[0] == '\0') {
if (symbol[0] == '\0') {
return symbol;
}

Expand Down

0 comments on commit f099a33

Please sign in to comment.