From 9d3bca73d4fa4cf5543c68902dfc6e589c7d7bb2 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 16 Apr 2016 15:45:58 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9291 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/nil/include/ch.h | 5 +++++ os/rt/include/chsystypes.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h index 31ec8bfe3..dc8dac6f0 100644 --- a/os/nil/include/ch.h +++ b/os/nil/include/ch.h @@ -617,6 +617,11 @@ struct nil_system { #define _dbg_leave_lock() (nil.lock_cnt = (cnt_t)0) #endif +/** + * @brief Utility to make the parameter a quoted string. + */ +#define __CH_STRINGIFY(a) #a + /** * @name Threads tables definition macros * @{ diff --git a/os/rt/include/chsystypes.h b/os/rt/include/chsystypes.h index 50d963f95..527ff2e8b 100644 --- a/os/rt/include/chsystypes.h +++ b/os/rt/include/chsystypes.h @@ -115,6 +115,11 @@ typedef struct ch_system ch_system_t; /* Module macros. */ /*===========================================================================*/ +/** + * @brief Utility to make the parameter a quoted string. + */ +#define __CH_STRINGIFY(a) #a + /*===========================================================================*/ /* External declarations. */ /*===========================================================================*/