#include <boost/preprocessor/list/adt.hpp> #define LIST (a, BOOST_PP_NIL) BOOST_PP_LIST_IS_NIL(LIST) // 0 に展開される BOOST_PP_LIST_IS_NIL(BOOST_PP_LIST_REST(LIST)) // 1 に展開される