From 17e88bf059b1c1435c664b30191b151bbafea236 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 28 Mar 2022 16:10:30 +0200 Subject: log signals --- src/defines.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/defines.hpp') diff --git a/src/defines.hpp b/src/defines.hpp index e12aa53a..0fbaa795 100644 --- a/src/defines.hpp +++ b/src/defines.hpp @@ -1,5 +1,6 @@ #include "includes.hpp" #include "debug/Log.hpp" +#include "helpers/MiscFunctions.hpp" #ifndef NDEBUG #define ISDEBUG true @@ -26,10 +27,14 @@ #define HYPRATOM(name) {name, 0} +#ifndef __INTELLISENSE__ #define RASSERT(expr, reason) \ if (!expr) { \ Debug::log(CRIT, "\n==========================================================================================\nASSERTION FAILED! \n\n%s\n\nat: line %d in %s", std::string(reason).c_str(), __LINE__, ([]() constexpr->std::string { return std::string(__FILE__).substr(std::string(__FILE__).find_last_of('/') + 1); })().c_str()); \ RIP("Assertion failed! See the log in /tmp/hypr/hyprland.log for more info."); \ } +#else +#define RASSERT(expr, reason) +#endif #define ASSERT(expr) RASSERT(expr, "?") \ No newline at end of file -- cgit v1.2.3