Fix _format_func_name with static (or other) qualifiers

This commit is contained in:
2025-03-13 16:42:11 +10:00
parent c3e91e48a8
commit 0d080e01b5

View File

@@ -22,8 +22,8 @@ namespace Nova {
NOVA_API void _assert_fail(std::string_view assertion, std::string_view file, std::string_view func, int line); NOVA_API void _assert_fail(std::string_view assertion, std::string_view file, std::string_view func, int line);
consteval std::string_view _format_func_name(const std::string_view name) { consteval std::string_view _format_func_name(const std::string_view name) {
const auto start = name.find_first_of(' ') + 1; const auto end = name.find('(');
const auto end = name.find_first_of('('); const auto start = name.rfind(' ', end) + 1;
return name.substr(start, end - start); return name.substr(start, end - start);
} }
} // namespace Internals } // namespace Internals