The BOOST_PP_RPAREN macro expands to a right parenthesis.

Usage

BOOST_PP_RPAREN()

Remarks

The preprocessor interprets parentheses as delimiters in macro invocations.  Because of this, parentheses require special handling.

See Also

Requirements

Header:  <boost/preprocessor/punctuation/paren.hpp>

Sample Code

#include <boost/preprocessor/facilities/empty.hpp>
#include <boost/preprocessor/punctuation/paren.hpp>

#define X(x) x
#define MACRO(x, p) X ( x p

MACRO(abc, BOOST_PP_RPAREN()) // expands to abc

#define Y(x)

MACRO(BOOST_PP_EMPTY BOOST_PP_RPAREN()(), 10) // expands to 10