From e55aa0787498524b2995968f5353a77b13c86e8f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 11 May 2012 12:19:36 +1000 Subject: [PATCH] Rename CONCAT to PASTE and add STRINGIFY --- preprocessor.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/preprocessor.hpp b/preprocessor.hpp index dee7a40b..76fbe7b7 100644 --- a/preprocessor.hpp +++ b/preprocessor.hpp @@ -20,7 +20,10 @@ #ifndef __UTIL_PREPROCESSOR_HPP #define __UTIL_PREPROCESSOR_HPP -#define CONCATENATE_DETAIL(x, y) x##y -#define CONCATENATE(x, y) CONCATENATE_DETAIL(x, y) +#define PASTE_DETAIL(x, y) x##y +#define PASTE(x, y) PASTE_DETAIL(x, y) + +#define STRINGIFY_DETAIL(x) #x +#define STRINGIFY(x) STRINGIFY_DETAIL(x) #endif