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).
7 #if !defined(BOOST_VMD_IS_NUMBER_HPP)
8 #define BOOST_VMD_IS_NUMBER_HPP
10 #include <boost/vmd/detail/setup.hpp>
12 #if BOOST_PP_VARIADICS
14 #include <boost/vmd/detail/is_number.hpp>
18 The succeeding comments in this file are in doxygen format.
25 /** \def BOOST_VMD_IS_NUMBER(sequence)
27 \brief Tests whether a sequence is a Boost PP number.
29 The macro checks to see if a sequence is a Boost PP number.
30 A Boost PP number is a value from 0 to BOOST_PP_LIMIT_MAG.
32 sequence = a possible number
34 returns = 1 if the sequence is a Boost PP number,
37 If the input is not a VMD data type this macro could lead to
38 a preprocessor error. This is because the macro
39 uses preprocessor concatenation to determine if the input
40 is a number once it is determined that the input does not
41 start with parenthesis. If the data being concatenated would
42 lead to an invalid preprocessor token the compiler can issue
47 #define BOOST_VMD_IS_NUMBER(sequence) \
48 BOOST_VMD_DETAIL_IS_NUMBER(sequence) \
51 #endif /* BOOST_PP_VARIADICS */
52 #endif /* BOOST_VMD_IS_NUMBER_HPP */