From: bernie Date: Sun, 6 Jun 2004 18:00:39 +0000 (+0000) Subject: PP_CAT(): New macro. X-Git-Tag: 1.0.0~1214 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=f7f6c56fbafc2ad3b0b90c53e2a6e01387c1fc32;p=bertos.git PP_CAT(): New macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@27 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/compiler.h b/compiler.h index 4e082c5a..8f4a849a 100755 --- a/compiler.h +++ b/compiler.h @@ -15,6 +15,9 @@ /* * $Log$ + * Revision 1.3 2004/06/06 18:00:39 bernie + * PP_CAT(): New macro. + * * Revision 1.2 2004/06/03 11:27:09 bernie * Add dual-license information. * @@ -241,6 +244,10 @@ #define UINT32_LOG2(x) \ ((x < 65536UL) ? UINT16_LOG2(x) : UINT16_LOG2((x) >> 16) + 16) +/*! Concatenate two different preprocessor tokens (allowing macros to expand) */ +#define PP_CAT(x,y) PP_CAT__(x,y) +#define PP_CAT__(x,y) x ## y + /* Type definitions - should go in */ #if !(defined(size_t) || defined(_SIZE_T_DEFINED)) #define size_t unsigned int