aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/macros.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/macros.hpp')
-rw-r--r--src/macros.hpp3
1 files changed, 2 insertions, 1 deletions
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 <cmath>
#include <csignal>
+#include <print>
#include <utility>
#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); \
}