forked from boostorg/preprocessor
Fixed macro testing for __VA_OPT__ support.
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L
|
||||
#
|
||||
# define BOOST_PP_VARIADIC_OPT_FUNCTION(...) \
|
||||
__VA_OPT__(0,) 0, 0, 1 \
|
||||
__VA_OPT__(,) , 1, 0 \
|
||||
/**/
|
||||
#
|
||||
# define BOOST_PP_VARIADIC_OPT_ELEM0(e0, ...) BOOST_PP_VARIADIC_OPT_ELEM_0(e0,__VA_ARGS__)
|
||||
|
@ -19,7 +19,7 @@
|
||||
# if BOOST_PP_VARIADICS && defined(__cplusplus) && __cplusplus > 201703L
|
||||
# include <boost/preprocessor/variadic/detail/opt.hpp>
|
||||
# define BOOST_PP_VARIADIC_OPT() \
|
||||
BOOST_PP_VARIADIC_OPT_ELEM2(BOOST_PP_VARIADIC_OPT_FUNCTION(),) \
|
||||
BOOST_PP_VARIADIC_OPT_ELEM2(BOOST_PP_VARIADIC_OPT_FUNCTION(?),) \
|
||||
/**/
|
||||
# else
|
||||
# define BOOST_PP_VARIADIC_OPT() 0
|
||||
|
Reference in New Issue
Block a user