Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
TARGET_SAMD21G18A/stringz.h@114:252557024ec3, 2016-02-16 (annotated)
- Committer:
- Kojto
- Date:
- Tue Feb 16 14:28:01 2016 +0000
- Revision:
- 114:252557024ec3
- Parent:
- 111:4336505e4b1c
Release 114 of the mbed library
Changes:
- Atmel SAM - warnings fixes
- B96B F446VE - hw control flow addition
- Remove of GCC CW which was not active
- Remove GCC CS, not released anymore - deprecated
Who changed what in which revision?
User | Revision | Line number | New 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_ |