hot chocolate

v1
Brett 2023-12-07 16:03:38 -05:00
parent da891be991
commit 8defbaf70d
1 changed files with 17 additions and 11 deletions

View File

@ -26,6 +26,8 @@
#include <blt/compatibility.h> #include <blt/compatibility.h>
#include <string> #include <string>
namespace blt
{
static BLT_CPP20_CONSTEXPR inline std::string demangle(const std::string& str) static BLT_CPP20_CONSTEXPR inline std::string demangle(const std::string& str)
{ {
int status; int status;
@ -37,11 +39,15 @@
std::free(demangled_name); std::free(demangled_name);
return ret_name; return ret_name;
} }
}
#else #else
namespace blt
{
static BLT_CPP20_CONSTEXPR inline std::string demangle(const std::string& str) static BLT_CPP20_CONSTEXPR inline std::string demangle(const std::string& str)
{ {
return str; return str;
} }
}
#endif #endif
namespace blt namespace blt