From 981b4eb8d0b75b35628bf2389569aa5c51020f1b Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Tue, 18 Feb 2020 11:26:41 +0100 Subject: [PATCH] core/debug: Fix documentation of ENABLE_DEBUG macro --- core/include/debug.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/include/debug.h b/core/include/debug.h index f46bc5da7c..cc64abc91f 100644 --- a/core/include/debug.h +++ b/core/include/debug.h @@ -32,12 +32,6 @@ extern "C" { #endif -/** - * @def ENABLE_DEBUG - * @brief This macro can be defined as 0 or other on a file-based level. - * @ref DEBUG() will generate output only if ENABLE_DEBUG is non-zero. - */ - /** * @def DEBUG_PRINT * @@ -67,7 +61,11 @@ extern "C" { * @name Debugging defines * @{ */ -#ifndef ENABLE_DEBUG +/** + * @brief This macro can be defined as 0 or other on a file-based level. + * @ref DEBUG() will generate output only if ENABLE_DEBUG is non-zero. + */ +#if !defined(ENABLE_DEBUG) || defined(DOXYGEN) #define ENABLE_DEBUG (0) #endif