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