From c5108ee010ba6707b049a54ae77186a1cb8492c5 Mon Sep 17 00:00:00 2001 From: Pascal Pieper Date: Thu, 16 Jul 2026 09:26:20 +0200 Subject: [PATCH] [logger] Using root namespace prefix for macros to avoid ambiguities --- src/modm/debug/logger/level.hpp | 2 +- src/modm/debug/logger/logger.hpp | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/modm/debug/logger/level.hpp b/src/modm/debug/logger/level.hpp index c2eddc637d..b573b04224 100644 --- a/src/modm/debug/logger/level.hpp +++ b/src/modm/debug/logger/level.hpp @@ -55,7 +55,7 @@ namespace modm * * \ingroup modm_debug */ - #define MODM_LOG_LEVEL modm::log::DEBUG + #define MODM_LOG_LEVEL ::modm::log::DEBUG #endif // MODM_LOG_LEVEL #endif // MODM_LOG_LEVEL_HPP diff --git a/src/modm/debug/logger/logger.hpp b/src/modm/debug/logger/logger.hpp index 5a06f19f20..dfbbcb1cf1 100644 --- a/src/modm/debug/logger/logger.hpp +++ b/src/modm/debug/logger/logger.hpp @@ -88,39 +88,39 @@ namespace modm */ #define MODM_LOG_OFF \ if ( true ){} \ - else modm::log::debug + else ::modm::log::debug /** * \brief Output stream for debug messages * \ingroup modm_debug */ #define MODM_LOG_DEBUG \ - if (MODM_LOG_LEVEL > modm::log::DEBUG){} \ - else modm::log::debug + if (MODM_LOG_LEVEL > ::modm::log::DEBUG){} \ + else ::modm::log::debug /** * \brief Output stream for info messages * \ingroup modm_debug */ #define MODM_LOG_INFO \ - if (MODM_LOG_LEVEL > modm::log::INFO){} \ - else modm::log::info + if (MODM_LOG_LEVEL > ::modm::log::INFO){} \ + else ::modm::log::info /** * \brief Output stream for warnings * \ingroup modm_debug */ #define MODM_LOG_WARNING \ - if (MODM_LOG_LEVEL > modm::log::WARNING){} \ - else modm::log::warning + if (MODM_LOG_LEVEL > ::modm::log::WARNING){} \ + else ::modm::log::warning /** * \brief Output stream for error messages * \ingroup modm_debug */ #define MODM_LOG_ERROR \ - if (MODM_LOG_LEVEL > modm::log::ERROR){} \ - else modm::log::error + if (MODM_LOG_LEVEL > ::modm::log::ERROR){} \ + else ::modm::log::error #ifdef __DOXYGEN__