From d248b2d78555a5420952d9c6d4acfd36adb5effc Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 10 Mar 2022 10:12:44 +0100 Subject: [PATCH] core/lib: hide `_XTSTR()` from doxygen --- core/lib/include/macros/xtstr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/lib/include/macros/xtstr.h b/core/lib/include/macros/xtstr.h index b0ab140ad9..0f22135ea8 100644 --- a/core/lib/include/macros/xtstr.h +++ b/core/lib/include/macros/xtstr.h @@ -31,8 +31,10 @@ extern "C" { * @brief A macro to return the string respresentation of x */ #ifndef XTSTR -#define _XTSTR(x) # x -#define XTSTR(x) _XTSTR(x) +# ifndef DOXYGEN +# define _XTSTR(x) # x +# endif /* DOXYGEN */ +# define XTSTR(x) _XTSTR(x) #endif /* XTSTR */ #ifdef __cplusplus