From 5b714f05f87831e3e930af04649f853d5efb9902 Mon Sep 17 00:00:00 2001 From: Ikalco <73481042+ikalco@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:56:01 -0600 Subject: internal: Make static analysis more happy (#8767) * make functions used in 1 file static * fix invalid substr param -1 * give default initializer to borderGradier * move RASSERT from printf to std::print --- src/macros.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/macros.hpp') diff --git a/src/macros.hpp b/src/macros.hpp index 4a319569..de2fd009 100644 --- a/src/macros.hpp +++ b/src/macros.hpp @@ -2,6 +2,7 @@ #include #include +#include #include #include "helpers/memory/Memory.hpp" @@ -49,7 +50,7 @@ Debug::log(CRIT, "\n==========================================================================================\nASSERTION FAILED! \n\n{}\n\nat: line {} in {}", \ std::format(reason, ##__VA_ARGS__), __LINE__, \ ([]() constexpr -> std::string { return std::string(__FILE__).substr(std::string(__FILE__).find_last_of('/') + 1); })()); \ - printf("Assertion failed! See the log in /tmp/hypr/hyprland.log for more info."); \ + std::print("Assertion failed! See the log in /tmp/hypr/hyprland.log for more info."); \ raise(SIGABRT); \ } -- cgit v1.2.3