git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9291 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
Giovanni Di Sirio 2016-04-16 15:45:58 +00:00
parent ac27416296
commit 9d3bca73d4
2 changed files with 10 additions and 0 deletions

View File

@ -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
* @{

View File

@ -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. */
/*===========================================================================*/