Rename CONCAT to PASTE and add STRINGIFY

This commit is contained in:
Danny Robson 2012-05-11 12:19:36 +10:00
parent 7576f80b30
commit e55aa07874

View File

@ -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