forked from boostorg/preprocessor
Added the BOOST_PP_CHECK_EMPTY macro and documentation.
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
# define BOOST_PREPROCESSOR_FACILITIES_HPP
|
||||
#
|
||||
# include <boost/preprocessor/facilities/apply.hpp>
|
||||
# include <boost/preprocessor/facilities/check_empty.hpp>
|
||||
# include <boost/preprocessor/facilities/empty.hpp>
|
||||
# include <boost/preprocessor/facilities/expand.hpp>
|
||||
# include <boost/preprocessor/facilities/identity.hpp>
|
||||
|
19
include/boost/preprocessor/facilities/check_empty.hpp
Normal file
19
include/boost/preprocessor/facilities/check_empty.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
# /* **************************************************************************
|
||||
# * *
|
||||
# * (C) Copyright Edward Diener 2019.
|
||||
# * Distributed under the Boost Software License, Version 1.0. (See
|
||||
# * accompanying file LICENSE_1_0.txt or copy at
|
||||
# * http://www.boost.org/LICENSE_1_0.txt)
|
||||
# * *
|
||||
# ************************************************************************** */
|
||||
#
|
||||
# /* See http://www.boost.org for most recent version. */
|
||||
#
|
||||
# ifndef BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP
|
||||
# define BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP
|
||||
# include <boost/preprocessor/variadic/opt.hpp>
|
||||
# if BOOST_PP_VARIADIC_OPT()
|
||||
# include <boost/preprocessor/facilities/is_empty_variadic.hpp>
|
||||
# define BOOST_PP_CHECK_EMPTY(...) BOOST_PP_IS_EMPTY_OPT(__VA_ARGS__)
|
||||
# endif /* BOOST_PP_VARIADIC_OPT() */
|
||||
# endif /* BOOST_PREPROCESSOR_FACILITIES_CHECK_EMPTY_HPP */
|
Reference in New Issue
Block a user