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
- Committer:
- Kojto
- Date:
- 2016-02-16
- Revision:
- 114:252557024ec3
- Parent:
- 111:4336505e4b1c
File content as of revision 114:252557024ec3:
#ifndef _STRINGZ_H_ #define _STRINGZ_H_ /** * \defgroup group_sam0_utils_stringz Preprocessor - Stringize * * \ingroup group_sam0_utils * * @{ */ /** \brief Stringize. * * Stringize a preprocessing token, this token being allowed to be \#defined. * * May be used only within macros with the token passed as an argument if the * token is \#defined. * * For example, writing STRINGZ(PIN) within a macro \#defined by PIN_NAME(PIN) * and invoked as PIN_NAME(PIN0) with PIN0 \#defined as A0 is equivalent to * writing "A0". */ #define STRINGZ(x) #x /** \brief Absolute stringize. * * Stringize a preprocessing token, this token being allowed to be \#defined. * * No restriction of use if the token is \#defined. * * For example, writing ASTRINGZ(PIN0) anywhere with PIN0 \#defined as A0 is * equivalent to writing "A0". */ #define ASTRINGZ(x) STRINGZ(x) /** @} */ #endif // _STRINGZ_H_