]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/local_function/include/boost/local_function/aux_/preprocessor/traits/decl_sign_/validate.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / local_function / include / boost / local_function / aux_ / preprocessor / traits / decl_sign_ / validate.hpp
1
2 // Copyright (C) 2009-2012 Lorenzo Caminiti
3 // Distributed under the Boost Software License, Version 1.0
4 // (see accompanying file LICENSE_1_0.txt or a copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 // Home at http://www.boost.org/libs/local_function
7
8 #ifndef BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE_HPP_
9 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE_HPP_
10
11 #include <boost/local_function/aux_/preprocessor/traits/decl_sign_/validate_/defaults.hpp>
12 #include <boost/local_function/aux_/preprocessor/traits/decl_sign_/validate_/this.hpp>
13 #include <boost/preprocessor/tuple/eat.hpp>
14
15 // PRIVATE //
16
17 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE_1_(sign, error) \
18 BOOST_PP_IIF(BOOST_PP_IS_EMPTY(error(/* expand empty */)), \
19 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE_THIS \
20 , \
21 error BOOST_PP_TUPLE_EAT(1) \
22 )(sign)
23
24 // PUBLIC //
25
26 // Validate params before starting to parse it.
27 #define BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE(sign) \
28 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE_1_(sign, \
29 BOOST_LOCAL_FUNCTION_AUX_PP_DECL_TRAITS_SIGN_VALIDATE_DEFAULTS(sign))
30
31 #endif // #include guard
32