From 0d080e01b589eefecf0eb9eac3e1e2ff5eceecbb Mon Sep 17 00:00:00 2001 From: Jayden Grubb Date: Thu, 13 Mar 2025 16:42:11 +1000 Subject: [PATCH] Fix _format_func_name with static (or other) qualifiers --- engine/include/nova/core/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/include/nova/core/debug.h b/engine/include/nova/core/debug.h index 1c6d047..71269a7 100644 --- a/engine/include/nova/core/debug.h +++ b/engine/include/nova/core/debug.h @@ -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); 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_first_of('('); + const auto end = name.find('('); + const auto start = name.rfind(' ', end) + 1; return name.substr(start, end - start); } } // namespace Internals