Only include macro if allowable.

This commit is contained in:
Edward Diener
2019-09-26 15:05:17 -04:00
parent a42f374b97
commit 684e9991ec

View File

@ -1,6 +1,6 @@
# /* ************************************************************************** # /* **************************************************************************
# * * # * *
# * (C) Copyright Edward Diener 2014. # * (C) Copyright Edward Diener 2014,2019.
# * Distributed under the Boost Software License, Version 1.0. (See # * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt or copy at # * accompanying file LICENSE_1_0.txt or copy at
# * http://www.boost.org/LICENSE_1_0.txt) # * http://www.boost.org/LICENSE_1_0.txt)
@ -64,9 +64,11 @@
(__VA_ARGS__) \ (__VA_ARGS__) \
/**/ /**/
#define BOOST_PP_IS_EMPTY_ZERO(...) 0 #define BOOST_PP_IS_EMPTY_ZERO(...) 0
#if BOOST_PP_VARIADIC_OPT()
#define BOOST_PP_IS_EMPTY_FUNCTION2(...) \ #define BOOST_PP_IS_EMPTY_FUNCTION2(...) \
__VA_OPT__(0,) 1 \ __VA_OPT__(0,) 1 \
/**/ /**/
#endif
#define BOOST_PP_IS_EMPTY_FUNCTION(...) \ #define BOOST_PP_IS_EMPTY_FUNCTION(...) \
BOOST_PP_IS_EMPTY_FUNCTION2(__VA_ARGS__) \ BOOST_PP_IS_EMPTY_FUNCTION2(__VA_ARGS__) \
/**/ /**/