1 2 // (C) Copyright Edward Diener 2011-2015 3 // Use, modification and distribution are subject to the Boost Software License, 4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt). 6 7 #include <boost/vmd/is_parens_empty.hpp> 8 #include <boost/detail/lightweight_test.hpp> 9 main()10int main() 11 { 12 13 #if BOOST_PP_VARIADICS 14 15 #define DATA () * 4 16 #define DATA2 4 * () 17 #define DATA3 (X) 18 #define DATA4 () 19 #define DATA5 ( ) 20 21 BOOST_TEST(!BOOST_VMD_IS_PARENS_EMPTY(DATA)); 22 BOOST_TEST(!BOOST_VMD_IS_PARENS_EMPTY(DATA2)); 23 BOOST_TEST(!BOOST_VMD_IS_PARENS_EMPTY(DATA3)); 24 BOOST_TEST(BOOST_VMD_IS_PARENS_EMPTY(DATA4)); 25 BOOST_TEST(BOOST_VMD_IS_PARENS_EMPTY(DATA5)); 26 27 #else 28 29 BOOST_ERROR("No variadic macro support"); 30 31 #endif 32 33 return boost::report_errors(); 34 35 } 36