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
TARGET_SAMD21J18A/tpaste.h@120:2eb10e18b8d7, 2016-04-13 (annotated)
- Committer:
- elijahorr
- Date:
- Wed Apr 13 12:29:27 2016 +0000
- Revision:
- 120:2eb10e18b8d7
- Parent:
- 111:4336505e4b1c
V1.1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 111:4336505e4b1c | 1 | #ifndef _TPASTE_H_ |
Kojto | 111:4336505e4b1c | 2 | #define _TPASTE_H_ |
Kojto | 111:4336505e4b1c | 3 | |
Kojto | 111:4336505e4b1c | 4 | /** |
Kojto | 111:4336505e4b1c | 5 | * \defgroup group_sam0_utils_tpaste Preprocessor - Token Paste |
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 | /** \name Token Paste |
Kojto | 111:4336505e4b1c | 13 | * |
Kojto | 111:4336505e4b1c | 14 | * Paste N preprocessing tokens together, these tokens being allowed to be \#defined. |
Kojto | 111:4336505e4b1c | 15 | * |
Kojto | 111:4336505e4b1c | 16 | * May be used only within macros with the tokens passed as arguments if the tokens are \#defined. |
Kojto | 111:4336505e4b1c | 17 | * |
Kojto | 111:4336505e4b1c | 18 | * For example, writing TPASTE2(U, WIDTH) within a macro \#defined by |
Kojto | 111:4336505e4b1c | 19 | * UTYPE(WIDTH) and invoked as UTYPE(UL_WIDTH) with UL_WIDTH \#defined as 32 is |
Kojto | 111:4336505e4b1c | 20 | * equivalent to writing U32. |
Kojto | 111:4336505e4b1c | 21 | * |
Kojto | 111:4336505e4b1c | 22 | * @{ */ |
Kojto | 111:4336505e4b1c | 23 | #define TPASTE2( a, b) a##b |
Kojto | 111:4336505e4b1c | 24 | #define TPASTE3( a, b, c) a##b##c |
Kojto | 111:4336505e4b1c | 25 | #define TPASTE4( a, b, c, d) a##b##c##d |
Kojto | 111:4336505e4b1c | 26 | #define TPASTE5( a, b, c, d, e) a##b##c##d##e |
Kojto | 111:4336505e4b1c | 27 | #define TPASTE6( a, b, c, d, e, f) a##b##c##d##e##f |
Kojto | 111:4336505e4b1c | 28 | #define TPASTE7( a, b, c, d, e, f, g) a##b##c##d##e##f##g |
Kojto | 111:4336505e4b1c | 29 | #define TPASTE8( a, b, c, d, e, f, g, h) a##b##c##d##e##f##g##h |
Kojto | 111:4336505e4b1c | 30 | #define TPASTE9( a, b, c, d, e, f, g, h, i) a##b##c##d##e##f##g##h##i |
Kojto | 111:4336505e4b1c | 31 | #define TPASTE10(a, b, c, d, e, f, g, h, i, j) a##b##c##d##e##f##g##h##i##j |
Kojto | 111:4336505e4b1c | 32 | /** @} */ |
Kojto | 111:4336505e4b1c | 33 | |
Kojto | 111:4336505e4b1c | 34 | /** \name Absolute Token Paste |
Kojto | 111:4336505e4b1c | 35 | * |
Kojto | 111:4336505e4b1c | 36 | * Paste N preprocessing tokens together, these tokens being allowed to be \#defined. |
Kojto | 111:4336505e4b1c | 37 | * |
Kojto | 111:4336505e4b1c | 38 | * No restriction of use if the tokens are \#defined. |
Kojto | 111:4336505e4b1c | 39 | * |
Kojto | 111:4336505e4b1c | 40 | * For example, writing ATPASTE2(U, UL_WIDTH) anywhere with UL_WIDTH \#defined |
Kojto | 111:4336505e4b1c | 41 | * as 32 is equivalent to writing U32. |
Kojto | 111:4336505e4b1c | 42 | * |
Kojto | 111:4336505e4b1c | 43 | * @{ */ |
Kojto | 111:4336505e4b1c | 44 | #define ATPASTE2( a, b) TPASTE2( a, b) |
Kojto | 111:4336505e4b1c | 45 | #define ATPASTE3( a, b, c) TPASTE3( a, b, c) |
Kojto | 111:4336505e4b1c | 46 | #define ATPASTE4( a, b, c, d) TPASTE4( a, b, c, d) |
Kojto | 111:4336505e4b1c | 47 | #define ATPASTE5( a, b, c, d, e) TPASTE5( a, b, c, d, e) |
Kojto | 111:4336505e4b1c | 48 | #define ATPASTE6( a, b, c, d, e, f) TPASTE6( a, b, c, d, e, f) |
Kojto | 111:4336505e4b1c | 49 | #define ATPASTE7( a, b, c, d, e, f, g) TPASTE7( a, b, c, d, e, f, g) |
Kojto | 111:4336505e4b1c | 50 | #define ATPASTE8( a, b, c, d, e, f, g, h) TPASTE8( a, b, c, d, e, f, g, h) |
Kojto | 111:4336505e4b1c | 51 | #define ATPASTE9( a, b, c, d, e, f, g, h, i) TPASTE9( a, b, c, d, e, f, g, h, i) |
Kojto | 111:4336505e4b1c | 52 | #define ATPASTE10(a, b, c, d, e, f, g, h, i, j) TPASTE10(a, b, c, d, e, f, g, h, i, j) |
Kojto | 111:4336505e4b1c | 53 | /** @} */ |
Kojto | 111:4336505e4b1c | 54 | |
Kojto | 111:4336505e4b1c | 55 | /** @} */ |
Kojto | 111:4336505e4b1c | 56 | |
Kojto | 111:4336505e4b1c | 57 | #endif // _TPASTE_H_ |