Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 1 | |
| 2 | // (C) Copyright Tobias Schwinger |
| 3 | // |
| 4 | // Use modification and distribution are subject to the boost Software License, |
| 5 | // Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt). |
| 6 | |
| 7 | //------------------------------------------------------------------------------ |
| 8 | |
| 9 | // no include guards, this file is intended for multiple inclusions |
| 10 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 11 | #ifndef NDNBOOST_FT_DETAIL_PP_LOOP_HPP_INCLUDED |
| 12 | #define NDNBOOST_FT_DETAIL_PP_LOOP_HPP_INCLUDED |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 13 | # include <ndnboost/preprocessor/facilities/expand.hpp> |
| 14 | # include <ndnboost/preprocessor/facilities/empty.hpp> |
| 15 | # include <ndnboost/preprocessor/punctuation/paren.hpp> |
| 16 | #endif |
| 17 | |
| 18 | #include <ndnboost/function_types/detail/encoding/def.hpp> |
| 19 | #include <ndnboost/function_types/detail/encoding/aliases_def.hpp> |
| 20 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 21 | #if defined(NDNBOOST_FT_PREPROCESSING_MODE) |
| 22 | # define NDNBOOST_FT_loop <ndnboost/function_types/detail/pp_cc_loop/master.hpp> |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 23 | #else |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 24 | # define NDNBOOST_FT_loop \ |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 25 | <ndnboost/function_types/detail/pp_cc_loop/preprocessed.hpp> |
| 26 | #endif |
| 27 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 28 | #if defined(NDNBOOST_FT_al_path) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 29 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 30 | # define NDNBOOST_FT_cc_file \ |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 31 | <ndnboost/function_types/detail/pp_variate_loop/preprocessed.hpp> |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 32 | # define NDNBOOST_FT_variate_file \ |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 33 | <ndnboost/function_types/detail/pp_arity_loop.hpp> |
| 34 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 35 | # ifndef NDNBOOST_FT_type_function |
| 36 | # define NDNBOOST_FT_type_function(cc,name) NDNBOOST_FT_SYNTAX( \ |
| 37 | R NDNBOOST_PP_EMPTY,NDNBOOST_PP_EMPTY,cc,NDNBOOST_PP_EMPTY,name,NDNBOOST_PP_EMPTY) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 38 | # endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 39 | # ifndef NDNBOOST_FT_type_function_pointer |
| 40 | # define NDNBOOST_FT_type_function_pointer(cc,name) NDNBOOST_FT_SYNTAX( \ |
| 41 | R NDNBOOST_PP_EMPTY,NDNBOOST_PP_LPAREN,cc,* NDNBOOST_PP_EMPTY,name,NDNBOOST_PP_RPAREN) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 42 | # endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 43 | # ifndef NDNBOOST_FT_type_function_reference |
| 44 | # define NDNBOOST_FT_type_function_reference(cc,name) NDNBOOST_FT_SYNTAX( \ |
| 45 | R NDNBOOST_PP_EMPTY,NDNBOOST_PP_LPAREN,cc,& NDNBOOST_PP_EMPTY,name,NDNBOOST_PP_RPAREN) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 46 | # endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 47 | # ifndef NDNBOOST_FT_type_member_function_pointer |
| 48 | # define NDNBOOST_FT_type_member_function_pointer(cc,name) NDNBOOST_FT_SYNTAX( \ |
| 49 | R NDNBOOST_PP_EMPTY,NDNBOOST_PP_LPAREN,cc,T0::* NDNBOOST_PP_EMPTY,name,NDNBOOST_PP_RPAREN) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 50 | # endif |
| 51 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 52 | # include NDNBOOST_FT_loop |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 53 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 54 | # undef NDNBOOST_FT_type_function |
| 55 | # undef NDNBOOST_FT_type_function_pointer |
| 56 | # undef NDNBOOST_FT_type_function_reference |
| 57 | # undef NDNBOOST_FT_type_member_function_pointer |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 58 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 59 | # undef NDNBOOST_FT_variations |
| 60 | # undef NDNBOOST_FT_variate_file |
| 61 | # undef NDNBOOST_FT_cc_file |
| 62 | # undef NDNBOOST_FT_al_path |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 63 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 64 | #elif defined(NDNBOOST_FT_cc_file) |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 65 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 66 | # include NDNBOOST_FT_loop |
| 67 | # undef NDNBOOST_FT_cc_file |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 68 | |
| 69 | #else |
| 70 | |
| 71 | # error "argument missing" |
| 72 | |
| 73 | #endif |
| 74 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 75 | #undef NDNBOOST_FT_loop |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 76 | |
| 77 | #include <ndnboost/function_types/detail/encoding/aliases_undef.hpp> |
| 78 | #include <ndnboost/function_types/detail/encoding/undef.hpp> |
| 79 | |
| 80 | |