From 1a3d17da9150f255ff2144cbe8317c0200de0ee4 Mon Sep 17 00:00:00 2001 From: staz Date: Wed, 25 Dec 2024 04:32:18 +0500 Subject: [PATCH] debug: fix ISDEBUG checking (#8823) --- src/debug/CrashReporter.cpp | 2 +- src/debug/HyprCtl.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index bddc04be6..7bff72957 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -111,7 +111,7 @@ void NCrashReporter::createAndSaveCrash(int sig) { #ifdef LEGACY_RENDERER finalCrashReport += "legacyrenderer\n"; #endif -#ifndef ISDEBUG +#if ISDEBUG finalCrashReport += "debug\n"; #endif #ifdef NO_XWAYLAND diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index da0b2e282..b946da6e9 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -884,14 +884,14 @@ std::string versionRequest(eHyprCtlOutputFormat format, std::string request) { HYPRLAND_VERSION, GIT_BRANCH, GIT_COMMIT_HASH, GIT_DIRTY, commitMsg, GIT_COMMIT_DATE, GIT_TAG, GIT_COMMITS, AQUAMARINE_VERSION, HYPRLANG_VERSION, HYPRUTILS_VERSION, HYPRCURSOR_VERSION, HYPRGRAPHICS_VERSION); -#if (!defined(LEGACY_RENDERER) && !defined(ISDEBUG) && !defined(NO_XWAYLAND)) +#if (!defined(LEGACY_RENDERER) && !ISDEBUG && !defined(NO_XWAYLAND)) result += "no flags were set\n"; #else result += "flags set:\n"; #ifdef LEGACY_RENDERER result += "legacyrenderer\n"; #endif -#ifdef ISDEBUG +#if ISDEBUG result += "debug\n"; #endif #ifdef NO_XWAYLAND @@ -922,7 +922,7 @@ std::string versionRequest(eHyprCtlOutputFormat format, std::string request) { #ifdef LEGACY_RENDERER result += "\"legacyrenderer\","; #endif -#ifdef ISDEBUG +#if ISDEBUG result += "\"debug\","; #endif #ifdef NO_XWAYLAND