blob: b3ed9f60fb93d2d753c020a826973a40c5cc6c0f [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001# /* Copyright (C) 2001
2# * Housemarque Oy
3# * http://www.housemarque.com
4# *
5# * Distributed under the Boost Software License, Version 1.0. (See
6# * accompanying file LICENSE_1_0.txt or copy at
7# * http://www.boost.org/LICENSE_1_0.txt)
8# */
9#
10# /* Revised by Paul Mensonides (2002) */
11#
12# /* See http://www.boost.org for most recent version. */
13#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070014# ifndef NDNBOOST_PREPROCESSOR_CAT_HPP
15# define NDNBOOST_PREPROCESSOR_CAT_HPP
Jeff Thompsonf7d49942013-08-01 16:47:40 -070016#
Jeff Thompson2277ce52013-08-01 17:34:11 -070017# include <ndnboost/preprocessor/config/config.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070018#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070019# /* NDNBOOST_PP_CAT */
Jeff Thompsonf7d49942013-08-01 16:47:40 -070020#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070021# if ~NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_MWCC()
22# define NDNBOOST_PP_CAT(a, b) NDNBOOST_PP_CAT_I(a, b)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070023# else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070024# define NDNBOOST_PP_CAT(a, b) NDNBOOST_PP_CAT_OO((a, b))
25# define NDNBOOST_PP_CAT_OO(par) NDNBOOST_PP_CAT_I ## par
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026# endif
27#
Jeff Thompson3d613fd2013-10-15 15:39:04 -070028# if ~NDNBOOST_PP_CONFIG_FLAGS() & NDNBOOST_PP_CONFIG_MSVC()
29# define NDNBOOST_PP_CAT_I(a, b) a ## b
Jeff Thompsonf7d49942013-08-01 16:47:40 -070030# else
Jeff Thompson3d613fd2013-10-15 15:39:04 -070031# define NDNBOOST_PP_CAT_I(a, b) NDNBOOST_PP_CAT_II(~, a ## b)
32# define NDNBOOST_PP_CAT_II(p, res) res
Jeff Thompsonf7d49942013-08-01 16:47:40 -070033# endif
34#
35# endif