From 27fe826185651e5a23758f7c7d3dd9ebf0038293 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Tue, 29 Apr 2025 07:23:06 +0200 Subject: [PATCH] Added two utility macros to stringify the value of a define --- src/W800_SDK_v1.00.10/app/app_utils/app_utils.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/W800_SDK_v1.00.10/app/app_utils/app_utils.h b/src/W800_SDK_v1.00.10/app/app_utils/app_utils.h index 6b93aae..f86d80b 100644 --- a/src/W800_SDK_v1.00.10/app/app_utils/app_utils.h +++ b/src/W800_SDK_v1.00.10/app/app_utils/app_utils.h @@ -3,6 +3,17 @@ #include "wm_include.h" + +/** + * @brief Macro used to stringify the value of a define. + */ +#define STRINGIFY_VALUE(x) STRINGIFY(x) + +/** + * @brief Macro used to stringify a define. + */ +#define STRINGIFY(x) #x + /** * @brief Wait for the specified time in micro seconds. This is a blocking function ! *