Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/fusion/adapted/struct/detail/namespace.hpp @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 /*============================================================================= | |
2 Copyright (c) 2009-2010 Hartmut Kaiser | |
3 Copyright (c) 2010 Christopher Schmidt | |
4 | |
5 Distributed under the Boost Software License, Version 1.0. (See accompanying | |
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 ==============================================================================*/ | |
8 | |
9 #ifndef BOOST_FUSION_ADAPTED_DETAIL_STRUCT_NAMESPACE_HPP | |
10 #define BOOST_FUSION_ADAPTED_DETAIL_STRUCT_NAMESPACE_HPP | |
11 | |
12 #include <boost/preprocessor/dec.hpp> | |
13 #include <boost/preprocessor/control/if.hpp> | |
14 #include <boost/preprocessor/seq/seq.hpp> | |
15 #include <boost/preprocessor/seq/for_each.hpp> | |
16 #include <boost/preprocessor/seq/size.hpp> | |
17 #include <boost/preprocessor/repetition/repeat.hpp> | |
18 #include <boost/preprocessor/tuple/eat.hpp> | |
19 | |
20 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_BEGIN_I(R,DATA,ELEM) \ | |
21 namespace ELEM { | |
22 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_END_I(Z,I,DATA) } | |
23 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION_I(Z,I,ELEM) ELEM:: | |
24 | |
25 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DEFINITION_BEGIN(NAMESPACE_SEQ) \ | |
26 BOOST_PP_IF( \ | |
27 BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(NAMESPACE_SEQ)), \ | |
28 BOOST_PP_SEQ_FOR_EACH_R, \ | |
29 BOOST_PP_TUPLE_EAT(4))( \ | |
30 1, \ | |
31 BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_BEGIN_I, \ | |
32 _, \ | |
33 BOOST_PP_SEQ_TAIL(NAMESPACE_SEQ)) | |
34 | |
35 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DEFINITION_END(NAMESPACE_SEQ) \ | |
36 BOOST_PP_REPEAT_1( \ | |
37 BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(NAMESPACE_SEQ)), \ | |
38 BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_END_I, \ | |
39 _) | |
40 | |
41 #define BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION(NAMESPACE_SEQ) \ | |
42 BOOST_PP_IF( \ | |
43 BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(NAMESPACE_SEQ)), \ | |
44 BOOST_PP_SEQ_FOR_EACH_R, \ | |
45 BOOST_PP_TUPLE_EAT(4))( \ | |
46 1, \ | |
47 BOOST_FUSION_ADAPT_STRUCT_NAMESPACE_DECLARATION_I, \ | |
48 _, \ | |
49 BOOST_PP_SEQ_TAIL(NAMESPACE_SEQ)) | |
50 | |
51 #endif |