Back to Arangodb

BOOST_PP_RPAREN

3rdParty/boost/1.78.0/libs/preprocessor/doc/ref/rparen.html

3.12.9.11.1 KB
Original Source

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](../headers/facilities/empty.html)>
#include <[boost/preprocessor/punctuation/paren.hpp](../headers/punctuation/paren.html)>

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

MACRO(abc,[BOOST\_PP\_RPAREN](rparen.html)()) // expands to abc

#define Y(x)

MACRO([BOOST\_PP\_EMPTY](empty.html)[BOOST\_PP\_RPAREN](rparen.html)()(), 10) // expands to 10

Copyright Housemarque Oy 2002 Copyright Paul Mensonides 2002

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at www.boost.org/LICENSE_1_0.txt)