1 2 // Copyright Aleksey Gurtovoy 2003-2004 3 // 4 // Distributed under the Boost Software License, Version 1.0. 5 // (See accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt) 7 // 8 // See http://www.boost.org/libs/mpl for documentation. 9 10 // $Id$ 11 // $Date$ 12 // $Revision$ 13 14 #include <boost/mpl/aux_/preprocessor/is_seq.hpp> 15 16 #include <boost/preprocessor/logical/not.hpp> 17 #include <boost/preprocessor/debug/assert.hpp> 18 19 #define AUX_ASSERT_IS_SEQ( seq ) \ 20 BOOST_PP_ASSERT( BOOST_MPL_PP_IS_SEQ(seq) ) \ 21 /**/ 22 23 #define AUX_ASSERT_IS_NOT_SEQ( seq ) \ 24 BOOST_PP_ASSERT( BOOST_PP_NOT( BOOST_MPL_PP_IS_SEQ(seq) ) ) \ 25 /**/ 26 27 #define SEQ (a)(b)(c) 28 29 AUX_ASSERT_IS_NOT_SEQ( a ) 30 AUX_ASSERT_IS_SEQ( (a) ) 31 AUX_ASSERT_IS_SEQ( (a)(b) ) 32 AUX_ASSERT_IS_SEQ( (a)(b)(c) ) 33 AUX_ASSERT_IS_SEQ( SEQ ) 34