blob: cdf8a388251a361762a02aebf510eca923783404 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001//////////////////////////////////////////////////////////////////////////////
2//
3// (C) Copyright Ion Gaztanaga 2008-2012. Distributed under the Boost
4// Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7// See http://www.boost.org/libs/intrusive for documentation.
8//
9//////////////////////////////////////////////////////////////////////////////
10
Jeff Thompson3d613fd2013-10-15 15:39:04 -070011#ifndef NDNBOOST_INTRUSIVE_DETAIL_PREPROCESSOR_HPP
12#define NDNBOOST_INTRUSIVE_DETAIL_PREPROCESSOR_HPP
Jeff Thompsona28eed82013-08-22 16:21:10 -070013
14#if (defined _MSC_VER) && (_MSC_VER >= 1200)
15# pragma once
16#endif
17
18#include <ndnboost/intrusive/detail/config_begin.hpp>
19#include <ndnboost/intrusive/detail/workaround.hpp>
20
21#include <ndnboost/preprocessor/iteration/local.hpp>
22#include <ndnboost/preprocessor/punctuation/paren_if.hpp>
23#include <ndnboost/preprocessor/punctuation/comma_if.hpp>
24#include <ndnboost/preprocessor/control/expr_if.hpp>
25#include <ndnboost/preprocessor/cat.hpp>
26#include <ndnboost/preprocessor/repetition/enum.hpp>
27#include <ndnboost/preprocessor/repetition/enum_params.hpp>
28#include <ndnboost/preprocessor/repetition/enum_trailing_params.hpp>
29#include <ndnboost/preprocessor/repetition/enum_trailing.hpp>
30#include <ndnboost/preprocessor/repetition/enum_shifted_params.hpp>
31#include <ndnboost/preprocessor/repetition/enum_shifted.hpp>
32#include <ndnboost/preprocessor/repetition/repeat.hpp>
33#include <ndnboost/preprocessor/logical/not.hpp>
34#include <ndnboost/preprocessor/arithmetic/sub.hpp>
35#include <ndnboost/preprocessor/arithmetic/add.hpp>
36#include <ndnboost/preprocessor/iteration/iterate.hpp>
37
Jeff Thompson3d613fd2013-10-15 15:39:04 -070038#define NDNBOOST_INTRUSIVE_MAX_CONSTRUCTOR_PARAMETERS 10
Jeff Thompsona28eed82013-08-22 16:21:10 -070039
Jeff Thompson3d613fd2013-10-15 15:39:04 -070040#define NDNBOOST_INTRUSIVE_PP_IDENTITY(z, n, data) data
Jeff Thompsona28eed82013-08-22 16:21:10 -070041
Jeff Thompson3d613fd2013-10-15 15:39:04 -070042#define NDNBOOST_INTRUSIVE_PP_DECLVAL(z, n, data) \
43ndnboost::move_detail::declval< NDNBOOST_PP_CAT(P, n) >() \
Jeff Thompsona28eed82013-08-22 16:21:10 -070044//!
45
Jeff Thompson3d613fd2013-10-15 15:39:04 -070046#define NDNBOOST_INTRUSIVE_PP_TEMPLATE_PARAM_VOID_DEFAULT(z, n, data) \
47 NDNBOOST_PP_CAT(class P, n) = void \
Jeff Thompsona28eed82013-08-22 16:21:10 -070048//!
49
50#include <ndnboost/intrusive/detail/config_end.hpp>
51
Jeff Thompson3d613fd2013-10-15 15:39:04 -070052#endif //#ifndef NDNBOOST_INTRUSIVE_DETAIL_PREPROCESSOR_HPP