Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
111:4336505e4b1c
.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 111:4336505e4b1c 1 #ifndef _STRINGZ_H_
Kojto 111:4336505e4b1c 2 #define _STRINGZ_H_
Kojto 111:4336505e4b1c 3
Kojto 111:4336505e4b1c 4 /**
Kojto 111:4336505e4b1c 5 * \defgroup group_sam0_utils_stringz Preprocessor - Stringize
Kojto 111:4336505e4b1c 6 *
Kojto 111:4336505e4b1c 7 * \ingroup group_sam0_utils
Kojto 111:4336505e4b1c 8 *
Kojto 111:4336505e4b1c 9 * @{
Kojto 111:4336505e4b1c 10 */
Kojto 111:4336505e4b1c 11
Kojto 111:4336505e4b1c 12 /** \brief Stringize.
Kojto 111:4336505e4b1c 13 *
Kojto 111:4336505e4b1c 14 * Stringize a preprocessing token, this token being allowed to be \#defined.
Kojto 111:4336505e4b1c 15 *
Kojto 111:4336505e4b1c 16 * May be used only within macros with the token passed as an argument if the
Kojto 111:4336505e4b1c 17 * token is \#defined.
Kojto 111:4336505e4b1c 18 *
Kojto 111:4336505e4b1c 19 * For example, writing STRINGZ(PIN) within a macro \#defined by PIN_NAME(PIN)
Kojto 111:4336505e4b1c 20 * and invoked as PIN_NAME(PIN0) with PIN0 \#defined as A0 is equivalent to
Kojto 111:4336505e4b1c 21 * writing "A0".
Kojto 111:4336505e4b1c 22 */
Kojto 111:4336505e4b1c 23 #define STRINGZ(x) #x
Kojto 111:4336505e4b1c 24
Kojto 111:4336505e4b1c 25 /** \brief Absolute stringize.
Kojto 111:4336505e4b1c 26 *
Kojto 111:4336505e4b1c 27 * Stringize a preprocessing token, this token being allowed to be \#defined.
Kojto 111:4336505e4b1c 28 *
Kojto 111:4336505e4b1c 29 * No restriction of use if the token is \#defined.
Kojto 111:4336505e4b1c 30 *
Kojto 111:4336505e4b1c 31 * For example, writing ASTRINGZ(PIN0) anywhere with PIN0 \#defined as A0 is
Kojto 111:4336505e4b1c 32 * equivalent to writing "A0".
Kojto 111:4336505e4b1c 33 */
Kojto 111:4336505e4b1c 34 #define ASTRINGZ(x) STRINGZ(x)
Kojto 111:4336505e4b1c 35
Kojto 111:4336505e4b1c 36 /** @} */
Kojto 111:4336505e4b1c 37
Kojto 111:4336505e4b1c 38 #endif // _STRINGZ_H_